xtmgya
Last Updated: February 25, 2016
·
810
· jasonseney

View your external IP Address

In your shell config file:

alias myip="dig +short myip.opendns.com @resolver1.opendns.com"

Now you can simply type:

myip

Which Outputs

12.34.567.89