There are some programs like uTorrent that allow me log into them through the url:

http://localhost:8080/gui/

How would I be able to create a port like that, and display information there?