Find your public IP in the shell

curl -s http://checkip.dyndns.org | sed 's/[a-zA-Z/<> :]//g'

Simple but effective.

2012-02-19