Unable to connect to http_listener running on Windows from LAN

Nov 7, 2015 at 1:30 PM
HI all,

I was writing application for mac that was listening on incoming http requests from wlan. For this purpose I used http_listener and as I wanted for my server to be accessible on local network.

After completing mac version of application, I run into problems with windows port. Underlying windows HTTP API is throwing exception, and changing http://*:35353 or htpp://*:35353 did not worked. I'm only able to connect from same machine.

TCPview shows that System process is listening on correct port, but still its not accessible from my other machine.

Any advice? Where can I find any reference on what wildcard should I use?

Nov 7, 2015 at 8:38 PM
EDIT: If I change url to http://*:80/ I'm able to successfully connect. Any advice? Is it safe to just set url to http://*:80/app_specific_path? Can I rely that there will not be conflict with other apps that are listening on port 80?
Nov 10, 2015 at 9:54 AM
You may be being blocked by your firewall settings. Try it with your firewall temporarily disabled to test that.
Nov 12, 2015 at 4:55 PM
Edited Nov 12, 2015 at 4:57 PM
If you want to have external connections you also need to run the listener as admin when running on Windows, that's probably why you were getting an exception. Localhost can be a regular user but anything with * needs admin rights.