ciphermethod.com

How-To: Get External IP Address from the Command Line

by 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.

No comments for this entry yet...

Leave a Reply

You must be logged in to post a comment.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

But Wait, There's More!

A few highly recommended friends...