0

I am working with web socket client in Android device, Able to communicating to a remote web socket server. But right now I want run web socket server on android device & I need connect it from a remote web socket client (like on the system browser). I tried by giving my android device's IP address on the remote client. But it showing following error. "[Error] WebSocket network error: The operation couldn’t be completed. Connection refused"

bytecode77
  • 14,163
  • 30
  • 110
  • 141
  • "I tried by giving my android device's IP address on the remote client" -- what "remote client"? Is "the system browser" referring to a browser on the Android device, or a browser somewhere else? – CommonsWare Aug 31 '15 at 17:53
  • I am using browser on my mac as a remote client and am trying to create web socket client with my android device IP address. – user3557554 Sep 01 '15 at 11:25
  • Finally I found the solution myself. Instead of passing localhost to the web socket server on my android device, I am passing my device ip address and some port number, for remote client I did connect with same ip address and port number. I am able to get the web socket connection. – user3557554 Sep 08 '15 at 19:38

0 Answers0