ip-curl

License
Go

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

Demo

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.

GitHub

View Github