Hacker News new | past | comments | ask | show | jobs | submit login

http://icanhazip.com/ is my favourite one of these services, for simplicity and also as I can always remember the URL :)



I use https://wtfismyip.com/ for similar reasons :)


This one also shows both your IPv6 and your IPv4 at the same time, which none of the other ones linked in these comments seems to do


Pro of icanhazip.com is that you can curl it directly, it returns your address and nothing else; you don't have to parse the result to get the value, which is a big plus when used in a script:

    curl icanhazip.com
    curl ipv4.icanhazip.com
    curl ipv6.icanhazip.com


curl wtfismyip.com/text

curl wtfismyip.com/json


You can curl ifconfig.co as well, uses user agent sniffing to just return the IP


Yeah there are definitely different services for different use cases!


cURL has flags for this!

        curl -4 icanhazip.com
        curl -6 icanhazip.com


just went there.. Oh dear!


They keep with the theme even in API requests: https://wtfismyip.com/json


The first thing I read was "yourFuckingISP":"BSNL" and I was like yup that's right. :D


There are other services he runs as well: https://major.io/icanhazip-com-faq/


Curl icanhazip.com has become muscle memory for me.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: