Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Can't access websockets server on device #62

Open
ngoctr opened this issue Mar 21, 2017 · 3 comments
Open

Can't access websockets server on device #62

ngoctr opened this issue Mar 21, 2017 · 3 comments

Comments

@ngoctr
Copy link

ngoctr commented Mar 21, 2017

I run the Server test app on simulator, then I can use https://www.websocket.org/echo.html to test by connecting to ws://<127.0.0.1>:port, however, if I run the app on a device, then it's not possible to connect using ws://device-ipaddress:port. Anyone got the same issue?

P/S: I am using initWithHost:nil port:xxx to bind the server to INADDR_ANY so that supposes to use the current ip address of the device as the host.

@liaogang
Copy link

liaogang commented Jun 7, 2018

I meet the same issue

@bhavya-mobiux
Copy link

Getting the same issue

@RainPot
Copy link

RainPot commented Jul 27, 2021

I run the Server test app on simulator, then I can use https://www.websocket.org/echo.html to test by connecting to ws://<127.0.0.1>:port, however, if I run the app on a device, then it's not possible to connect using ws://device-ipaddress:port. Anyone got the same issue?

P/S: I am using initWithHost:nil port:xxx to bind the server to INADDR_ANY so that supposes to use the current ip address of the device as the host.

I meet the same issue, is now the problem solved?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants