How-To: Get External IP Address from the Command Line
by dervish on Sep.09, 2013, under Networking
Commands:
curl ifconfig.me
or
dig +short myip.opendns.com @resolver1.opendns.com
Examples:
dervish@mint15 ~ $ curl ifconfig.me
88.198.110.185
dervish@mint15 ~ $ dig +short myip.opendns.com @resolver1.opendns.com
64.130.245.84
NOTE: The curl command will return the proxy server address if one is being used.
Leave a Reply
You must be logged in to post a comment.