3 ms·
Find your public IP address from the command line
- jlewallen 12y agoThere is also http://ifconfig.me http://ifconfig.me
- sheetjs 12y agoWoah this is even more intense! http://ifconfig.me/host http://ifconfig.me/host for the hostname is a great option I wished curlmyip.com had
- sinaa 12y agoSame as http://icanhazip.com/ http://icanhazip.com/
- Zash 12y agoBah, no IPv6 :(
- thomersch_ 12y agoYou only need that if you are behind a NAT and on IPv6 there is no NAT. Simply use ifconfig.
- stock_toaster 12y agowtfismyip.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.
- lozf 12y agoI 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.
- kevinwallace 12y agoThese are my favorites, because they seem less likely to disappear in the future: https://ip.appspot.com/ https://ip.appspot.com/ http://whatismyip.akamai.com/ http://whatismyip.akamai.com/