Android Question WebSocket Client -can't connect to the server

jtare

Active Member
Licensed User
Longtime User
Hi, I was trying to run the example in the WebSocket Client thread but my phone does not connect to the server.
I tried to open the port 51042, and also changed the ip to this one:
B4X:
Private link As String = "ws://192.168.1.10:51042/ws"

In the b4j logs I get this, and as far as I know it is running ok.
B4X:
Program started.
2016-01-29 00:13:40.807:INFO::main: Logging initialized @1221ms
2016-01-29 00:13:40.924:INFO:oejs.Server:main: jetty-9.3.z-SNAPSHOT
2016-01-29 00:13:41.016:INFO:oejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@1ba5a14{/,file:///D:/Basic4Java/Examples/ServerExample/B4A-WebSocket/Objects/www,AVAILABLE}
2016-01-29 00:13:41.019:INFO:oejs.AbstractNCSARequestLog:main: Opened D:\Basic4Java\Examples\ServerExample\B4A-WebSocket\Objects\logs\b4j-2016_01_29.request.log
2016-01-29 00:13:41.090:INFO:oejs.ServerConnector:main: Started ServerConnector@121b0a2{HTTP/1.1,[http/1.1]}{0.0.0.0:51042}
2016-01-29 00:13:41.091:INFO:oejs.Server:main: Started @1508ms
Emulated network latency: 100ms
2016-01-29 03.23.32.png
 
Top