https://github.com/mxssl/ntwrk
Check your external IP address http://sre.monster
https://github.com/mxssl/ntwrk
Last synced: about 1 month ago
JSON representation
Check your external IP address http://sre.monster
- Host: GitHub
- URL: https://github.com/mxssl/ntwrk
- Owner: mxssl
- Created: 2018-11-01T02:22:26.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2026-04-22T21:28:41.000Z (2 months ago)
- Last Synced: 2026-04-22T23:25:21.731Z (2 months ago)
- Language: Go
- Homepage:
- Size: 1.26 MB
- Stars: 22
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# ntwrk
This is a simple app that you can use to check your external IP address. Hosted on [http://sre.monster](http://sre.monster)
Usage:
IPv4:
```sh
curl -4 sre.monster
```
IPv6:
```sh
curl -6 sre.monster
```
## Install
If you want to run your own instance of the app, create a `.env` file with the following content:
```sh
# The app starts on this port
PORT=80
# The mode can be set to "native", "cloudflare", or "proxy"
# - "native" - extracts IP from the RemoteAddr field
# - "cloudflare" - responds with the value of the "CF-Connecting-IP" HTTP header
# https://developers.cloudflare.com/fundamentals/reference/http-request-headers/#cf-connecting-ip
# - "proxy" - for using with reverse proxies (nginx, HAProxy, etc.) that set the
# "X-Forwarded-For" header. Returns the first IP from the header (the original client IP).
MODE=native
```
Create `docker-compose.yml` file:
```yaml
services:
ntwrk:
image: mxssl/ntwrk:0.1.14
env_file: .env
restart: always
# For "native" mode, you need to use the host network mode
network_mode: host
```
Pull and start the container:
```sh
docker compose pull
docker compose up -d
docker compose logs
```