This project is read-only.

On windows I can't connect to urls with host names.

Aug 13, 2013 at 4:17 PM
I use the lib to connect to

It seems that I can connect only to URLs containing IP addresses. It does handshaking successfully but after that just waits in "connecting" state forever.

Handshaking is done with a separate request. This is the code used to open a websocket connection:
this.wsClient = new WebSocket(
  string.Format("{0}://{1}:{2}/{3}", wsScheme, uri.Host, uri.Port, this.HandShake.SID),
wsClient.AllowUnstrustedCertificate = true;
this.wsClient.EnableAutoSendPing = true; 
For example if I try to connect ro it works, localhost:3700 doesn't.
Tried to connect to a remote server by host name — doesn't work.

Works fine on OS X.

Is there a way to debug this?
Aug 13, 2013 at 9:03 PM
Yes, definitely something is wrong.
When I try to connect to my macbook as macbook.local no connection is established at all. Checked with WireShark.
If I use its internal IP everything works fine. In Chrome macbook.local works fine. On the same macbook with exactly the same Unity project it works fine.
Aug 14, 2013 at 11:50 AM
Which version are you using?

Could you try to disable the ipv6 function of your windows?
Aug 14, 2013 at 4:06 PM
I'm using the latest version.
Just disabled ipv6, rebooted and it didn't help )8
Tested on 3 Windows PCs in different networks.
Aug 15, 2013 at 2:21 AM
Could you send me the dll you are using?
Aug 19, 2013 at 11:26 AM
I'm using it with UnitySocketIO lib but I narrowed down the problem to WebSocket4Net.
Unity3d uses Mono, not sure which version.

Here are the DLLs which are used in my Unity3d project:

But while trying to debug the problem I replaced them with the latest source I got from the site. Same thing.
Aug 19, 2013 at 11:36 AM
I found it use WebSocket4Net for .NET 3.5. Could you try to use WebSocket4Net for .NET 4.0?
Aug 19, 2013 at 11:48 AM
Where do I get it?
From downloads section?
Aug 19, 2013 at 12:15 PM
No, download from source code and then build by yourself!

Sent from my Windows Phone

From: valyard
Sent: 8/19/2013 18:48
To: [email removed]
Subject: Re: On windows I can't connect to urls with host names. [websocket4net:453287]

From: valyard

Where do I get it?
From downloads section?