CodeIgniter Forums
PHP thinks my IP is ::1? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: PHP thinks my IP is ::1? (/showthread.php?tid=14023)



PHP thinks my IP is ::1? - El Forum - 12-15-2008

[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.


PHP thinks my IP is ::1? - El Forum - 12-15-2008

[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?


PHP thinks my IP is ::1? - El Forum - 12-15-2008

[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?