4 ms·
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
by kalleboo 6y ago
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
- throwaway744678 6y agoPro 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
- theblazehen 6y agoYou can curl ifconfig.co as well, uses user agent sniffing to just return the IP
- kalleboo 6y agoYeah there are definitely different services for different use cases!
- yjftsjthsd-h 6y agocurl wtfismyip.com/text curl wtfismyip.com/json
- lytedev 6y agocURL has flags for this! curl -4 icanhazip.com curl -6 icanhazip.com