Page 1 of 1

Wrong IP Address outputted ?

Posted: Fri Oct 21, 2011 6:20 pm
by jjmpsp
For some reason, when I output my ip address in PHP, I get this result:
echo $_SERVER['REMOTE_ADDR'];
::1
I'm running an XAMPP installation on a new windows 7 64bit machine.
Does anyone know what is happening ? This is really bugging me and I can't seem to find a solution :(

Re: Wrong IP Address outputted ?

Posted: Sat Oct 22, 2011 12:11 pm
by jacek
That is the IPv6 version of 127.0.0.1 or localhost. So it is your IP if you are running the server on a local machine.