I assume you're using $_SERVER['REMOTE_ADDR'] to get this value...if both the server and the visiting device support IPv6, it's typically going to be preferred. PHP can only see the IP of the connection used to call the script, so if the connection came in on IPv6, you'll see an IPv6 address.