suddenly $_SERVER['REMOTE_ADDR'] is started returning 10.10.10.10 php
<p>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 <code>$_SERVER['REMOTE_ADDR']</code> to get IP. It was storing accurate IP of visitor before but suddenly this variable started returning <code>10.10.10.10</code> for all of my customers.</p>

<p>It is happening from <code>01-31-2011.</code> </p>

<p>What could be the causes? </p>

<p>server info : LAMP
EDIT:
Now I have below function which is also returning same <code>10.10.10.10</code></p>

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

<p>Thanks</p>
