ID:               24553
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to