$_SERVER["REMOTE_ADDR"] returning ::1

From: Date: Thu, 18 Sep 2008 04:57:42 +0000
Subject: $_SERVER["REMOTE_ADDR"] returning ::1
Groups: php.general 
Request: Send a blank email to php-general+get-280439@lists.php.net to get a copy of this message
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?

« previous php.general (#280439) next »