WebSocketListener icon indicating copy to clipboard operation
WebSocketListener copied to clipboard

Run on Port 80 with Web Server

Open Kevin-Andrew opened this issue 7 years ago • 1 comments

I think you have a great project here, thanks for sharing. However, one of the key aspects of WebSockets is that they are "firewall friendly" because they use port 80 and 443. Correct me if I'm wrong, but with your class using a TcpListener at the lowest level, you won't be able to run this on port 80 if a web server is also already running on the same machine? Do you know of any workarounds for that?

Kevin-Andrew avatar Jan 14 '18 07:01 Kevin-Andrew

Thanks! Yes this is a though limitation. I do not know a way to hook into the same port that for example IIS uses.

HTTP.sys (IIS) since version 8 has this capability of switching between regular HTTP and WebSockets, but as far as I know ,there is no way to hook there. In .NET Core there may be a way, but probably using the buit-it websocket support is better idea.

vtortola avatar Jan 15 '18 16:01 vtortola