#24553 [Opn->Bgs]: Error with $_SERVER["REMOTE_ADDR"]

From: Date: Wed, 09 Jul 2003 12:35:55 +0000
Subject: #24553 [Opn->Bgs]: Error with $_SERVER["REMOTE_ADDR"]
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-43527@lists.php.net to get a copy of this message
ID: 24553 Updated by: sniper@php.net Reported By: darren at aoitalk dot com -Status: Open +Status: Bogus Bug Type: HTTP related Operating System: OSX 10.2.6 PHP Version: 4.3.3RC1 New Comment: Just some webserver difference. And you can't really rely on that anyway, most times it's just the proxy IP anyway. Previous Comments: ------------------------------------------------------------------------ [2003-07-08 21:20:27] darren at aoitalk dot com Description: ------------ Hi all, I am unsure if I have this right.... but using an OSX 10.2.6 Server running 4.3.3RC1, when I ask for the users IP address via $_SERVER["REMOTE_ADDR"] I get the IP address of the webserver, not the browser client, though if I ask for $_SERVER['HTTP_PC_REMOTE_ADDR'], I do get the client IP. Hope this helps Daz Reproduce code: --------------- print '<pre>'; print_r($GLOBALS); PRINT '</pre>'; Expected result: ---------------- [REMOTE_ADDR] => <my browser ip address> Actual result: -------------- [REMOTE_ADDR] => <my web server ip address> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=24553&edit=1

« previous php.bugs (#43527) next »