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
It's Apache 2.0 licensed and it's poorly written code. ;)
Enjoy! -- Major Hayden
If you do want to deploy this yourself:
- Build the container:
make container
- Run the container:
docker run --restart=unless-stopped --name icanhaz-1 -i -d -p 46000:5000 --log-opt max-size=20m --log-opt max-file=5 lykinsbd/icanhaz:latest
- Profit!