Wrong IP Address outputted ?

Ask about a PHP problem here.
Post Reply
jjmpsp
Posts: 2
Joined: Fri Oct 21, 2011 5:58 pm

Wrong IP Address outputted ?

Post 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 :(
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Wrong IP Address outputted ?

Post 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.
Image
Post Reply