Finding Your External IP from Linux/BSD

 If you have curl installed:

echo "External IP:" `curl -s http://checkip.dyndns.org/ | awk '{print $6}' | cut -f 1 -d "<"`

This comes in real handy if you move sites and have more than one route out. It also works rather well from OSX Geektool.

Written on May 5, 2010