I am running a server program on my local machine using port 8080 which prints whatever string is found from the client.

If I use a browser and enter the following address on address bar:
Code:
http://127.0.0.1:8080/a.txt
Nothing happens on server end and on the browser it says:

Code:
Unable to connect, browser can't establish a connection to the server at 127.0.0.1:8080.
If I use 6000 as port number instead of 8080 on server and on browser, browser says:

Code:
This address is restricted
I want to connect to the erver using browser and print on the server whatever is sent by the browser!!!