This is an old revision of the document!
http://whatismyip.com
Using the 'lynx' text web browser:
lynx --dump http://www.whatismyip.com/ | grep -o '[0-9].*\.[0-9].*\.[0-9].*\.[0-9].*' -m1