I often need to check my WAN IP address – so this little command will do it for you in a terminal window
dig +short myip.opendns.com @resolver1.opendns.com
If you alias it, you can have a one word command (whatismyip)
alias whatismyip='dig +short myip.opendns.com @resolver1.opendns.com'
Lovely