I am attempting to create a windows application that listens to port 80. I started with a socket, then tried a TCP, and eventually an HTTP, Listener - nothing works. I keep getting an access denied error.
As it turns out, the geniuses at Microsoft flow all port 80 traffic through the Http.sys DLL - which means that only one process is allowed to listen on that port ever. In my case, IIS is running (this is my DEV box) and that means that I either need to force IIS to share port 80 or I need to dynamically re-route port 80 traffic through another port.
Does anybody know how to do either of those tasks? The re-routing would ideally occur through code inside my Windows application.
The last option is to change port 80 in the default website to another port - but that broke the Visual Studio debugger and I also do not know how to crrect that issue.
Any of the above solutions would be awesome - thanks!