Skip to content

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

License

Notifications You must be signed in to change notification settings

NoobforAl/IpReturn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published