• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP thinks my IP is ::1?

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

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

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.