Re: SERVER["REMOTE_ADDR"]

From: Date: Fri, 18 Mar 2005 01:36:58 +0000
Subject: Re: SERVER["REMOTE_ADDR"]
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-15861@lists.php.net to get a copy of this message
te@xinunix.de wrote:
Dear all i have a big problem. <? echo $_SERVER['REMOTE_ADDR']; ?> if i call this file the value is not my client ip - it the local server ip REMOTE_ADDR and SERVER_ADDR are the same. can any help me - i m very confused.
You are probably behind a reverse proxy then. Look through the phpinfo() output and see if you have HTTP_X_FORWARDED_FOR with the correct ip. -Rasmus

« previous php.install (#15861) next »