Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jamsocket/ip-api
A simple, dockerized HTTP server which returns the client's remote IP address as plaintext. For testing & development, not production.
https://github.com/jamsocket/ip-api
Last synced: about 1 month ago
JSON representation
A simple, dockerized HTTP server which returns the client's remote IP address as plaintext. For testing & development, not production.
- Host: GitHub
- URL: https://github.com/jamsocket/ip-api
- Owner: jamsocket
- License: mit
- Created: 2022-10-01T19:13:51.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-02T17:03:37.000Z (about 2 years ago)
- Last Synced: 2024-05-17T06:49:54.143Z (7 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```