DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Get Public IP Address
Get your public IP address using dyndns websize
$ curl -s http://checkip.dyndns.org/ | grep -o "[[:digit:].]\+"