Public | Automated Build

Last pushed: 2 years ago
Short Description
Simple web server written in java that returns his own IP address and listening port.
Full Description


This is an ultra-simple web server written in java. It returns a welcome message and also print outs the server's IP address and listening TCP port. This is useful for demo purposes and load-balancing testing. It also looks for the environment variable $PORT0 and starts the server in that port if the variable exists. This is useful for deployment with Marathon and DC/OS.

The docker version runs on Alpine linux and is fairly lightweight.


Pull the docker image into docker or marathon. Or download and run the .jar file locally.


Docker image is available:


Or run locally as:

sudo java -jar simpleweb.jar


  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D


Most of the code is coming from:

The code for detecting the server's IP addresses was found here:


TODO: Write license

Docker Pull Command