https://github.com/thehxdev/echoip
Send a request, get your public IP address
https://github.com/thehxdev/echoip
golang ip
Last synced: about 1 year ago
JSON representation
Send a request, get your public IP address
- Host: GitHub
- URL: https://github.com/thehxdev/echoip
- Owner: thehxdev
- Created: 2024-06-15T22:22:20.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-15T22:22:37.000Z (almost 2 years ago)
- Last Synced: 2025-01-13T19:38:18.317Z (over 1 year ago)
- Topics: golang, ip
- Language: Go
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EchoIP
A small program for cheching public IP address.
## Build
First you must install `go` compiler from [go.dev](https://go.dev) website.
Then build `echoip` executable:
```bash
go build -ldflags='-s -d' .
```
## Usage
Running `echoip` is very simple:
```bash
# default value for `-addr` flag is `localhost:5000`
./echoip -addr ':5000'
```
If you run `echoip` with command above, it will listen on `0.0.0.0:5000`.
For TLS support you can use a reverse proxy like [Caddy](https://caddyserver.com).