This web server is not currently hosted under gimmeip.org, but you can still pull the repo, compile and run the service if needed. Intended to be an easy way to get your public IP address from a terminal, for use in scripts(check to make sure VPN works, etc) for example. To get your public IP, you can do:
my_ip=$(curl $WEBSERVER_IP) && echo $my_ip
127.0.0.1
The webapp also serves a webpage if you directly visit the url.
To compile the project, simply do:
make
in the project directory.
For the debug build, you can do:
make debug
You can configure the port and host address using the macros in the gimmeip_server.c file. The input_html.html file contains the html for the page to be served. The embed_html.sh script converts this to a stack allocated string during compilation, and this acts as a template for all the other webpages to be served.