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