To find the external/public IP address from the shell, use the following command:
dig +short myip.opendns.com @resolver1.opendns.com
To find the external/public IP address from the shell, use the following command:
dig +short myip.opendns.com @resolver1.opendns.com