How can I find out my public IP address using the command line?

dig +short myip.opendns.com @resolver1.opendns.com

Reference:

https://www.cyberciti.biz/faq/how-to-find-my-public-ip-address-from-command-line-on-a-linux/

Share this article

Leave a Reply

Your email address will not be published.

Scroll to Top