CodeIgniter Forums

Full Version: PHP thinks my IP is ::1?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]kyleect[/eluser]
I'm 99% sure this isn't CodeIgniter but thought I would ask here. When I echo $_SERVER['REMOTE_ADDR'], it outputs ::1. Now, I haven't checked for an IP address for a few months but it worked then. I have not made any server changes in about a year. I'm current on OSX 10.4 running MAMP (PHP Version 5.2.5, MySQL 5.0.41, Apache 2). I have tried this with a test script in the root folder, same issue. Has anyone else come across this?

If I left information out, please ask I can get it.

El Forum

[eluser]ray73864[/eluser]
::1 is your local IP address (traditional 127.0.0.1 for IPv4) represented in IPv6 format, you said you hadn't changed things around in a year, but i would imagine that you have applied OS updates?

El Forum

[eluser]kyleect[/eluser]
Yes, regular OSX updates. If it's only this machine it's not a big deal though annoying. Do you or someone else know how to fix that on OSX?