sta / websocket-sharp

A C# implementation of the WebSocket protocol client and server
http://sta.github.io/websocket-sharp
MIT License
5.61k stars 1.64k forks source link

ssh + tunnell #13

Open teammixture opened 11 years ago

teammixture commented 11 years ago

Is there any reason known why websocket-sharp will not work over a tunnel using ssh and remote port forward.

I've been testing with SSH.NET.

If I use the standard .NET HttpListener all works fine. As soon as I use with websocket-sharp it stops working.

The issue seems very strange and I am having trouble getting any useful debug information.

I think it could either be...

  1. An issue with websocket-sharp and SSH.NET remote port forwarding
  2. An issue with the HttpListener

Debugging and it seems that SSH.NET and the fowarding all connects correctly, which made me think it was something to do with the HttpListener - but this never gets.

teammixture commented 11 years ago

SSH.NET is reporting that the connection was actively refused, which would suggest nothing is listening on that port... could websocket-sharp could cause this?

sta commented 11 years ago

Is your test like following?

[WebSocket client]=[SSH client]<===>[SSH server]=[WebSocket server]

If it's so, how did you use websocket-sharp? As WebSocket client?

And you wrote:

If I use the standard .NET HttpListener all works fine.

Does it mean that the following works fine?

[WebSocket client on web browser]=[SSH client]<===>[SSH server]=[WebSocket server using std .NET 4.5 HttpListener]

As soon as I use with websocket-sharp it stops working.

Does it mean that the following does not work?

[WebSocket client using websocket-sharp]=[SSH client]<===>[SSH server]=[WebSocket server using std .NET 4.5 HttpListener]