Broadband External IP Address from Command Line
Just typing "What is my external ip address" into Google is normally the most convenient way to find your external public IP address when you're behind a NAT'd broadband connection. The site ipconfig.me offers an alternative and clean way to get it from the command line, for example for use in a shell script:
1server# curl ifconfig.me
2132.231.56.65
3server# curl ifconfig.me/host
4132-231-56-65.myisp.com
They have a range of options to return IP, Hostname, UserAgent, etc. The one I may be using is ifconfig.me/all.json or all.xml, to make it even easier to read into a Perl or Python script!