Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3949758
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:31:53+00:00 2026-05-20T01:31:53+00:00

On my production site, I’m keeping the log for users when they visited my

  • 0

On my production site, I’m keeping the log for users when they visited my site (ie login, logout) with their IP address.I’m using $_SERVER['REMOTE_ADDR'] to get IP. It was storing accurate IP of visitor before but suddenly this variable started returning 10.10.10.10 for all of my customers.

It is happening from 01-31-2011.

What could be the causes?

server info : LAMP
EDIT:
Now I have below function which is also returning same 10.10.10.10

function GetIP()
{
       if (getenv("HTTP_CLIENT_IP") && strcasecmp(getenv("HTTP_CLIENT_IP"),
"unknown"))
               $ip = getenv("HTTP_CLIENT_IP");
       else if (getenv("HTTP_X_FORWARDED_FOR") &&
strcasecmp(getenv("HTTP_X_FORWARDED_FOR"), "unknown"))
               $ip = getenv("HTTP_X_FORWARDED_FOR");
       else if (getenv("REMOTE_ADDR") && strcasecmp(getenv("REMOTE_ADDR"), "unknown"))
               $ip = getenv("REMOTE_ADDR");
       else if (isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] &&
strcasecmp($_SERVER['REMOTE_ADDR'], "unknown"))
               $ip = $_SERVER['REMOTE_ADDR'];
       else
               $ip = "unknown";
       return($ip);
}

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T01:31:53+00:00Added an answer on May 20, 2026 at 1:31 am

    That IP is an IANA “Black hole” address – no one is using it, and it is not considered a valid public IP address. Typically, it is used in code as a placeholder for an IP, or to mock code.

    Are you certain you have not used a snippet of code somewhere that is overwriting this value? Check around for an accidental if($_SERVER['REMOTE_ADDR'] = '10.0.10.10') (note the single equals sign). In short – that address cannot possibly be legitimate.

    It is, however, legit to use as an internal IP. As has been suggested by others, this may be the result of internal request routing. Check with your host to see if there have been any changes in network structure.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently using the Smarty templating system for our production site, but am curious
I'm considering using Entity Framework 4.3 migrations in a production site. The following is
On our production site, we are using rails 3.2.3 and authlogic 3.1.0. I am
I am using Django Flatpages in a production site. I'd like to figure out
I'm putting my django site in production for the first time so please forgive
I'm having a nightmare uploading my site to the production server. The site runs
Looking at an unofficial OCaml grammar in this site the only production where begin
I have just moved the dev site over to my linux server for production
There's one news-portal and its huge (site A). During production backwards, it has been
The following function works perfectly on our production site function flickrGetPhotos(){ $.getJSON(http://api.flickr.com/services/rest/?method=flickr.photosets.getList&api_key= + flickrApiKey

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.