This is a simple http server written in java How to use:

  1. Compile and Run this WebServer.java
  2. open a browser and type "http://127.0.0.1:8000" in the URL bar.
  3. You will see a 404 error page! Congrats! Your server is working fine.
  4. Try to put anything like a mp3 file into the directory where you store the WebServer.java.(e.g. hello.mp3)
  5. type "http://127.0.0.1:8000/hello.mp3" in the browser, and you will hear the song!