[PHP] $_SERVER[REMOTE_ADDR] returning ::1

2008-09-18 Thread David Rocks
I am running a test PHP web app on my local machine that uses REMOTE_ADDR and most of the time ::1 is returned as the IP addr and sometimes it is 127.0.0.1 . I am on OS X 10.5.5 and using APACHE 2. PHPINFO always returns ::1 for REMOTE_ADDR. Is this a PHP or a APACHE 2 thing? -- PHP

Re: [PHP] $_SERVER[REMOTE_ADDR] returning ::1

2008-09-18 Thread David Rocks
Stut wrote: On 18 Sep 2008, at 05:57, David Rocks wrote: I am running a test PHP web app on my local machine that uses REMOTE_ADDR and most of the time ::1 is returned as the IP addr and sometimes it is 127.0.0.1 . I am on OS X 10.5.5 and using APACHE 2. PHPINFO always returns ::1

Re: [PHP] $_SERVER[REMOTE_ADDR] returning ::1

2008-09-18 Thread David Rocks
Stut wrote: On 18 Sep 2008, at 16:37, David Rocks wrote: Stut wrote: On 18 Sep 2008, at 05:57, David Rocks wrote: I am running a test PHP web app on my local machine that uses REMOTE_ADDR and most of the time ::1 is returned as the IP addr and sometimes it is 127.0.0.1 . I am on OS X