I am using xampp on localhost and when I use $_SERVER[\"REMOTE_ADDR\"] it returns ::1 (also does this in phpinfo()). Why does it do th
$_SERVER[\"REMOTE_ADDR\"]
::1
phpinfo()
::1 is an IPv6 address and an abbreviation for 0:0:0:0:0:0:0:1 that is the loopback address to the local machine. So ::1 is the same as 127.0.0.1 only via IPv6 instead of IPv4.
0:0:0:0:0:0:0:1
127.0.0.1