Skip to content
/ ip-curl Public

A lightweight tool that starts a web server and returns the client's IP address on every request

License

Notifications You must be signed in to change notification settings

majd/ip-curl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ip-curl

License Go

A lightweight tool that starts a web server and returns the client's IP address on every request.

Demo

Usage

The tool can be ran in a Docker container or compiled directly on the host.

Docker (recommended)

Start container

$ docker run --rm -p 3000:80 -e PORT=80 ghcr.io/majd/ip-curl

Manual

Clone repository

$ git clone git@github.com:majd/ip-curl.git && cd ip-curl

Compile code

$ go mod download
$ go build

Run compiled binary

$ PORT=3000 ./ip-curl

License

ip-curl is released under the MIT license.

About

A lightweight tool that starts a web server and returns the client's IP address on every request

Topics

Resources

License

Stars

Watchers

Forks

Packages