Sign inSign up

misterabdul/ipku

By misterabdul

Updated over 2 years ago

Get the public IP address of the client.

Image
0

884

misterabdul/ipku repository overview

IPKU

Get the public IP address of the client.

Usage

Running

# Using go run
$ go run src/main.go -port=3000 -behind-proxy=false

# Using go build & binary run
$ CGO_ENABLED=0 go build -o bin/ipku src/*.go && ./bin/ipku -port=3000 -behind-proxy=false

# Using GNU Make
$ make && make run PORT=3000 BEHIND_PROXY=false

# Using docker run & docker build
$ docker build --no-cache -t misterabdul/ipku:latest . --build-arg="PORT=3000" \
    && docker run --rm -it --network host -e "BEHIND_PROXY=false" misterabdul/ipku:latest

# Using docker compose
$ cp .env.example .env && docker compose build --no-cache && docker compose up

Tag summary

Content type

Image

Digest

sha256:59b5bc5bf

Size

7.3 MB

Last updated

over 2 years ago

docker pull misterabdul/ipku