Could be useful for testing Load balancer ports before your servers are in action.



[user@machine1 ]$ java -jar JavaHttpServer.jar
Utility to start a standalone simple http server
  java -jar JavaHttpServer.jar <host> <port>

To start it on a local host:
  java -jar JavaHttpServer.jar localhost 8080
[user@machine1 ]$

Example running on machine1 and on port 1815:

[user@machine1 ]$ java -jar JavaHttpServer.jar  machine1 1815
 Simple http server started on
 HOSTNAME: machine1/
 PORT: 1815
 Please use this address to test it http://machine1:1815/SimpleHttpserver