Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Latest commit

 

History

History
23 lines (15 loc) · 550 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 550 Bytes

ip-api

A simple, Dockerized HTTP server that clients can use to find their own IP.

Useful for testing and development, but not for production.

Usage

Run the docker container, and send HTTP requests to /.

The following example runs the container in the background, makes a single request, and shuts the container down.

> docker run -p 8080:8080 -d --name ip-api ghcr.io/drifting-in-space/ip-api:latest
96be59ee5bb89101c2d087c2b24f0d403de0e87e396c4c759a4e7c7ee8223a88

> curl localhost:8080
172.17.0.1

> docker stop ip-api
ip-api