How To Find My Public IP Address From Command Line On a Linux

in linux •  8 years ago 

One of these two commands do the job:
$ dig +short myip.opendns.com @resolver1.opendns.com
$ dig TXT +short o-o.myaddr.l.google.com @ns1.google.com

Original Post

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Also curl icanhazip.com :)