Get my public IP address via CLI

Posted by the art of simplicity on Thursday, April 4, 2019

How to determine my public IP address assigned by the ISP via CLI

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

Use 3rd party

curl ifconfig.me

Cheers!