If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

websocket canīt reach local network client service

Having some trouble with websocket-connection within the local network.

Scenario:

For my laptop (Win7) I've written a service which opens a websocket-server to port 2014. Because websockets aren't enabled by default for windows 7 I'm using the supersocket library ( http://www.supersocket.net/ ).

For the Client I've written a android app with sencha touch and Phonegap. To enable websocket- support for android devices with version lower 4.4 I've integrated the phonegap websocket- pugin.

The reason is to open a websocket-connection between the android device and the laptop to control the laptop by the android app. Both devices are members of the same local network.

The problem:

After installing both applications (windows service and android app) I've tried to connect my android device with the service from the laptop. First step is to open the connection on the client:

var connection = new WebSocket('ws://192.168.178.21:2014');
But in the event-logs of my windows service there is no successful connection logged.

After that I opened the browser of my laptop and tested the same code - successful. Client and Server could communicate with each other.

So I've tested the websocket-support on my android device: changed the websocket-url to

var connection = new WebSocket('ws://echo.websocket.org');
and could connect to the server -> Android websockets are okay.

Third step was to disable my firewall and check the connection with Wireshark: