icanhazip.com FAQ

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.

16 thoughts on “icanhazip.com FAQ

  1. gavin says:

    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.

  2. Rob says:

    Cool site… What script do you use to generate the IP? And how to you get a monospace font output without any CSS?

    Thanks!

  3. [...] icanhazip.com / icanhazip.com FAQ [...]

  4. Scott says:

    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.

  5. Major Hayden says:

    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.

  6. [...] 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 [...]

  7. Tim Linden says:

    Sweeet. I been using whatismyip.com but they get cluttered with more and more ads.

  8. Joe says:

    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 ;)

  9. alex says:

    Do you have a flattr account?

    Thanks for the service :)

  10. Dave says:

    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 –>

  11. Steve says:

    Just wanted to say thanks for the service!

  12. Jeff says:

    Ditto; thanks a lot!

  13. yahya says:

    Thanks. Easy,straight,no bluffing site. Regards.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>