Need to retrieve a users IP, and my localhost is returning '::1' as the IP, and I am curious as to if this is expected behaviour
Running MAMP on Snow Leopard.
Need to retrieve a users IP, and my localhost is returning '::1' as the IP, and I am curious as to if this is expected behaviour
Running MAMP on Snow Leopard.
::1 is the IPv6 equivalent of IPv4 127.0.0.1 address.
You can convert IPv6 address to IPv4 address using function inet_ntop() as Adam, said.