←back to thread

224 points gurjeet | 5 comments | | HN request time: 0.758s | source
Show context
raesene9 ◴[] No.26634234[source]
http://icanhazip.com/ is my favourite one of these services, for simplicity and also as I can always remember the URL :)
replies(3): >>26634357 #>>26634947 #>>26636180 #
kuroguro ◴[] No.26634357[source]
I use https://wtfismyip.com/ for similar reasons :)
replies(2): >>26634759 #>>26634994 #
kalleboo ◴[] No.26634994[source]
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
replies(1): >>26635325 #
1. throwaway744678 ◴[] No.26635325[source]
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
replies(4): >>26635490 #>>26635799 #>>26635899 #>>26638577 #
2. theblazehen ◴[] No.26635490[source]
You can curl ifconfig.co as well, uses user agent sniffing to just return the IP
3. kalleboo ◴[] No.26635799[source]
Yeah there are definitely different services for different use cases!
4. yjftsjthsd-h ◴[] No.26635899[source]
curl wtfismyip.com/text

curl wtfismyip.com/json

5. lytedev ◴[] No.26638577[source]
cURL has flags for this!

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