Re: $_SERVER['REMOTE_ADDR'] arriving in IPv6
| From: | Marcus Bointon | Date: | Thu, 18 May 2006 23:31:08 +0000 |
| Subject: | Re: $_SERVER['REMOTE_ADDR'] arriving in IPv6 | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-236455@lists.php.net to get a copy of this message | ||
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@synchromedia.co.uk | http://www.synchromedia.co.uk