|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-07-25 11:58 UTC] jani@php.net
[2007-07-26 00:48 UTC] fushimi at rep dot fielding dot nec dot co dot jp
[2007-07-26 09:50 UTC] jani@php.net
[2007-07-27 04:59 UTC] fushimi at rep dot fielding dot nec dot co dot jp
[2012-03-21 15:19 UTC] aladdin18 at hotmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 08:00:01 2025 UTC |
Description: ------------ I am evaluating the newest PHP 5.2.3, in relation with my current PHP 5.1.2. So, when I tried to get the remote IP using getenv(?REMOTE_ADDR?), I obtained the following results: PHP 5.2.3 => return 0.0.0.0 PHP 5.1.2 => return 192.168.1.1 PHP in ISAPI mode. Reproduce code: --------------- $ip = getenv("REMOTE_ADDR"); echo "IP Address ....: ".$ip; Expected result: ---------------- IP Address ....: 192.168.1.1 Actual result: -------------- IP Address ....: 0.0.0.0