Re: $_SERVER['REMOTE_ADDR'] arriving in IPv6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 18 May 2006, at 21:11, Stut wrote:

The value in that variable is coming from the web server not PHP. I suggest you change the web server configuration so it's listening on specific v4 IPs only rather than all IPs. See the docs for your web server for details on how to do that.

Yup, that was it, thanks. It appears that Apache 2 on OS X listens on IPv6 by default. To force it to listen on IPv4 only, change the default listen directive in httpd.conf to look like this:

Listen 0.0.0.0:80

Here's the reference: http://httpd.apache.org/docs/2.0/bind.html

Worked a treat for me.

Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
marcus@xxxxxxxxxxxxxxxxxx | http://www.synchromedia.co.uk

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux