Sign inSign up

bertrandmartel/external-ip

By bertrandmartel

•Updated over 5 years ago

Small server written in go exposing a single API displaying inbound & outbound IP

Image
0

853

bertrandmartel/external-ip repository overview

⁠API exposing inbound/outbound IP

Build Status Go Report Card License

Small server written in go exposing a single API displaying inbound & outbound IP

Environment variables :

namedescription
PORTserver port
HOSTNAMEhostname to check inbound ip

⁠Using Docker

  • DockerHub
docker run -p 4242:4242 -e PORT=4242 -e HOSTNAME=example.com -it bertrandmartel/external-ip
  • locally
docker build . -t external-ip
docker run -p 4242:4242 -e PORT=4242 -e HOSTNAME=example.com -it external-ip

⁠Using Go

go install
go run ./main.go

or

go install
go build
./external-ip

⁠Dependencies

Tag summary

Content type

Image

Digest

Size

157.4 MB

Last updated

over 5 years ago

docker pull bertrandmartel/external-ip