What is icanhazip.com?
The site allows visitors to see their public IP address as it appears to the internet. Since there are no ads and no other extra text in the response, visitors can use the response in scripts or other applications very easily.
Why is it called icanhazip.com?
You may understand the reasoning further if you review Wikipedia’s article on lolcats.
How do you handle IPv4 and IPv6?
There are A and AAAA records for the bare domain (icanhazip.com), so if you’re using IPv6, you should automatically see your IPv6 address returned under most situations. If you’re still on IPv4 only, you should see your IPv4 address returned.
There are also two other domains which allow you to fine-tune the response. If you query ipv4.icanhazip.com, you’ll always get an IPv4 response. On the other hand, ipv6.icanhazip.com will return your IPv6 address each time.
What about my privacy?
I do keep the logs from the web server around for a day or so to ensure that the service isn’t being abused. However, no data is stored in a database or provided to third parties. I may pull some general statistics from the logs from time to time about the countries where the site is the most popular, but there will never be anything released on a granular level.