From: darren at aoitalk dot com Operating system: OSX 10.2.6 PHP version: 4.3.3RC1 PHP Bug Type: HTTP related Bug description: Error with $_SERVER["REMOTE_ADDR"]
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 bug report at http://bugs.php.net/?id=24553&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24553&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24553&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24553&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24553&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24553&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24553&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24553&r=support Expected behavior: http://bugs.php.net/fix.php?id=24553&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24553&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24553&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24553&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24553&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24553&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24553&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24553&r=gnused