8 comments

[ 2.4 ms ] story [ 25.3 ms ] thread
Bah, no IPv6 :(
You only need that if you are behind a NAT and on IPv6 there is no NAT. Simply use ifconfig.
wtfismyip.com/text is the only one I can ever remember when I am on a terminal. For some reason it sticks in my head.

prefixing with ipv6 or ipv4 works nicely too.

I like the extra detail from

      curl ipinfo.io
particularly if using Tor or a VPN, but

      dig +short myip.opendns.com @208.67.222.222
is usually quicker than anything curl / wget based, as it doesn't use http. You can substitute `host` if `dig` isn't available.