Skip to content

Vanov/WhatsMyIp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WhatsMyIP

Simple HTTP server that returns clients IP address In other words: It tells you what your current external IP is.

Usage

Visiting "serveraddress:8080" in a browser or simply querying the service with curl:

curl serveraddress:8080

If behind a reverse proxy:

curl whatsmyip.mydomain.com

It should preferably run on a server that's reachable over the Internet. Any client requesting http://serveraddress:8080/ will receive its IP address (IPv4 or IPv6) back from the server. KEEP IN MIND that if you are hosting this locally on the same subnet, your router will most likely route your request directly to your server (or your current machine) resulting in the server reporting your gateway ip as your current public ip.

OCI Container

OCI container is available on Dockerhub at imbus64/whatsmyip, run it with:

docker run -d \
    -p 8080:8080 \
    --restart unless-stopped \
    --name whatsmyip \
    imbus64/whatsmyip

or alternatively with docker-compose:

version: "3.3"
services:
    whatsmyip:
        image: imbus64/whatsmyip
        container_name: whatsmyip
        restart: unless-stopped
        ports:
            - 8080:8080

Run manually

go build -o ipcheck && ./ipcheck

About

Simple "whatsmyip" service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published