A lightweight tool that starts a web server and returns the client's IP address on every request.
The tool can be ran in a Docker container or compiled directly on the host.
Start container
$ docker run --rm -p 3000:80 -e PORT=80 ghcr.io/majd/ip-curl
Clone repository
$ git clone git@github.com:majd/ip-curl.git && cd ip-curl
Compile code
$ go mod download
$ go build
Run compiled binary
$ PORT=3000 ./ip-curl
ip-curl is released under the MIT license.