Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 675 Bytes

README.md

File metadata and controls

38 lines (23 loc) · 675 Bytes

IP Return

simple API with written With C, this API return only your IP!

For writ API i use this pkg : ulfius

How Run ?

Two way for run this program:

1 - Run docker

Build image:

docker build --pull --rm -f "Dockerfile" -t ipreturn:latest "."

And Run container:

docker run -d -p 8080:8080 ipreturn

2 - Run with gcc compiler

You need linux machine (i use arch linux for this program).

Install dependency:

sudo pacman -Sy gcc make ulfius

And run code:

make run

You can test Program:

curl 127.0.0.1:8080

OutPut:

127.0.0.1

Note: for run debug mode need add environment export DEBUG_IP_RETURN=true.