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.
This is good to remember. Just the other day I was trying to get the ip address with wget on the command line from wimi.com, and couldn’t.
Cool site… What script do you use to generate the IP? And how to you get a monospace font output without any CSS?
Thanks!
[...] / icanhazip.com FAQ [...]
[...] icanhazip.com / icanhazip.com FAQ [...]
[...] icanhazip.com / icanhazip.com FAQ [...]
Rob, the code is probably just a small PHP script involving “$_SERVER['REMOTE_ADDR']“. And it’s in monospace because the content type is set to plain text and not HTML.
Rob:
Scott is right. Your web browser displays the text in a monospace font because I’m setting the content type header to plain text within the script.
[...] effect on icanhazip.com I was surprised to see coverage about icanhazip.com on Lifehacker last Sunday and I was curious to know what effect the story would have on my site's [...]
Sweeet. I been using whatismyip.com but they get cluttered with more and more ads.
This is cool!
I’ve been offering a public ip lookup on my site for years http://www.joetesta.com/user.php
Not as slick as yours but it does the trick ;)
Do you have a flattr account?
Thanks for the service :)
Alex –
I do! https://flattr.com/profile/rackerhacker
Bah. Stupid comment form ate the HTML snippets and has no preview button.
Going to try again by manually HTML-encoding it by hand:
<!–Do not scrape your IP from here, go to http://www.whatismyip.com/faq/automation.asp for more information on our automation rules.–>
<!– contact us before using a script to get your IP address –>
Just wanted to say thanks for the service!
Ditto; thanks a lot!
Thanks. Easy,straight,no bluffing site. Regards.