#42094 [Opn->Fbk]: getenv("REMOTE_ADDR") returns no IP address
| From: | jani@php.net | Date: | Wed, 25 Jul 2007 11:58:28 +0000 |
| Subject: | #42094 [Opn->Fbk]: getenv("REMOTE_ADDR") returns no IP address | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-115422@lists.php.net to get a copy of this message | ||
ID: 42094
Updated by: jani@php.net
Reported By: fushimi at rep dot fielding dot nec dot co dot jp
-Status: Open
+Status: Feedback
-Bug Type: *General Issues
+Bug Type: IIS related
Operating System: Windows 2000
PHP Version: 5.2.3
New Comment:
Does it show up in $_SERVER['REMOTE_ADDR'] ??
Previous Comments:
------------------------------------------------------------------------
[2007-07-25 07:53:25] fushimi at rep dot fielding dot nec dot co dot jp
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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42094&edit=1