A simple IP echo service designed to run behind a Cloudflare proxy. It reads the client's real IP from the Cf-Connecting-Ip header and returns it as plain text.
If the header is absent (e.g. direct access not via Cloudflare), the service returns 400 Bad Request.
docker run -d -p 0.0.0.0:10101:10101 ghcr.io/eingress/whats-my-ipcurl http://0.0.0.0:10101
# 203.0.113.42| Variable | Default | Description |
|---|---|---|
PORT |
10101 |
Port the service listens on |
The image includes a /health endpoint that returns 200 OK, and a built-in HEALTHCHECK so container orchestrators can monitor service health.
curl http://0.0.0.0:10101/healthSee traefik/README.md for an example deployment behind Traefik with automatic TLS.