Edit report at https://bugs.php.net/bug.php?id=65962&edit=1

 ID:                 65962
 User updated by:    aceton at peroxid dot hu
 Reported by:        aceton at peroxid dot hu
 Summary:            The $_SERVER['REMOTE_ADDR'] contains the IP in the
                     IPv6 format.
 Status:             Not a bug
 Type:               Bug
 Package:            Variables related
 Operating System:   Windows 7 x64
 PHP Version:        5.5.5
 Block user comment: N
 Private report:     N

 New Comment:

Then that was strange. I'm accessed my pages via my computer's netbios name. 
Now it's in IPv6 format, but why... Only the PHP version was changed, anything 
else aren't.
When I'm trying to connect with IPv4 addresses, the $_SERVER['REMOTE_ADDR'] 
contains IPv4 address again.

Thanks for the fast answer!


Previous Comments:
------------------------------------------------------------------------
[2013-10-24 18:35:21] johan...@php.net

$_SERVER['REMOTE_ADDR'] contains what your webserver reports. PHP doesn't care. 
Your webserver reports what is actually used.

------------------------------------------------------------------------
[2013-10-24 18:25:57] aceton at peroxid dot hu

Description:
------------
The $_SERVER['REMOTE_ADDR'] contains the IP in IPv6 format. I'm using 
Aprelium's Abyss WebServer X1. With older versions of PHP(5.4.*, 5.3.*), this 
global value is in IPv4 format.

Test script:
---------------
$ip = $_SERVER['REMOTE_ADDR'];



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=65962&edit=1

Reply via email to