Linux: Get your public IP address from the shell

curl http://ipecho.net/plain; echo
Henning Koch