This project is read-only.

Is the WP7 version of WebSocket4Net compatible with IIS8 and Microsoft.WebSockets?

Dec 1, 2012 at 1:49 AM

I created a simple chat server using some sample code from MS that uses IIS8 and Microsoft.WebSockets.   It works fine with webbrowsers but when I try to connect using a WP7 app and WebSocket4Net I get the following exception:

No connection could be made because the target machine actively refused it

I tried all 4 of the WebSocketVersion options and got the same error, and the firewall on the server is turned off.

My Uri looks like this: ws://localhost/ChatServer/chat?username=Bob

Any ideas?

 

Dec 1, 2012 at 2:36 AM

Sorry I'm so embarrassed,  it was the "LocalHost" I was running it in an emulator on the same computer so it didn't notice that I should of been using the IP of the webserver.   LocalHost was the phone (emulator).   I got it working now and sending message from phone to ipad browser.  

Thanks for the code!