The purpose of this document is to show how to find your public IP while on the command line.
wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'
[Edit]