Find your public IP address from the command line
curlmyip.com
curlmyip.com
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.http://ifconfig.me/host for the hostname is a great option I wished curlmyip.com had
prefixing with ipv6 or ipv4 works nicely too.