A simple way to get your public IP address and other connection related information.
This project was forked from our other project https://github.com/StackFocus/SwagIP to help us learn go.
wget -qO - ip.swagger.pro
curl ip.swagger.pro
fetch -qo - ip.swagger.pro
Invoke-RestMethod https://ip.swagger.pro
- Install the binary from the Releases or compile yourself:
$ make build
$ GO_ENV=production ADDR=0.0.0.0 PORT=8080 ./SwagIP
$ make test
Docker is used to scale the application
$ docker build -t swagip .
$ docker run -p 0.0.0.0:80:3000 swagip