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

Can't access websockets server on device #62

@ngoctr

Description

@ngoctr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions