There's no need to check this code out and run it yourself. These services are available now! Go read the icanhazip FAQ on my blog for more details.
This is some of the code behind the scenes of some goofy websites like:
- icanhazip.com
- icanhazptr.com
- icanhaztrace.com
- icanhaztraceroute.com
- icanhazepoch.com
- icanhazproxy.com
- icanhazheaders.com
It's Apache 2.0 licensed and it's poorly written code. ;)
Enjoy! -- Major Hayden