Search code examples
c#.netwebserverhttplistener

HttpListener not listening outside of host computer?


I can use HttpListener to listen for requests coming from the same computer, but I have not figured out how to make it listen to outside requests.

My prefix is: "http://192.168.103.82:5000/"

I have also tried: "http://*:5000/"

I can type my local network IP into the browser and get a response. However if I do the same thing from a different computer on the same network, no such luck.

Is there some extra configuration that I need to do? Is this an OS specific problem? I am running Windows 7 Home.


Solution

  • You need to allow port 5000 through Windows Firewall.