How To Find My Public IP Address From Command Line On a Mac OS 22 December 2018DevelopmentRun the following command in the terminal:dig +short myip.opendns.com @resolver1.opendns.com