ip-curl

A lightweight tool that starts a web server and returns the client's IP address on every request

MIT License

Stars
12

ip-curl

A lightweight tool that starts a web server and returns the client's IP address on every request.

Usage

The tool can be ran in a Docker container or compiled directly on the host.

Docker (recommended)

Start container

$ docker run --rm -p 3000:80 -e PORT=80 ghcr.io/majd/ip-curl

Manual

Clone repository

$ git clone [email protected]:majd/ip-curl.git && cd ip-curl

Compile code

$ go mod download
$ go build

Run compiled binary

$ PORT=3000 ./ip-curl

License

ip-curl is released under the MIT license.