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 [url]http://bugs.php.net/?id=24553&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=24553&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=24553&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=24553&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=24553&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=24553&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=24553&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=24553&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=24553&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=24553&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=24553&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=24553&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=24553&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=24553&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=24553&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=24553&r=gnused[/url]