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

Run the following command in the terminal:

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

Leave a Reply