Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server on IPv6 interface? #231

Closed
d47081 opened this issue Dec 10, 2023 · 1 comment
Closed

Server on IPv6 interface? #231

d47081 opened this issue Dec 10, 2023 · 1 comment

Comments

@d47081
Copy link

d47081 commented Dec 10, 2023

netstat -tulpn | grep LISTEN

it works on 0.0.0.0 interface and connecting well using IPv4 but I'm using IPv6 in local network.

Is there any way to run dev or prod on IPv6 interface (without SSL mode)

Maybe something could be defined here?

$server = IoServer::factory(
    new HttpServer(
        new WsServer(
            new WebSocket()
        )
    ),
    $_ENV['WS_PORT']
);
@d47081
Copy link
Author

d47081 commented Dec 10, 2023

Just found reply to my question:

$server = IoServer::factory(
    new HttpServer(
        new WsServer(
            new WebSocket()
        )
    ),
    $_ENV['WS_PORT'],
    '[::]'
);

Would be nice to add this option to the .env config

d47081 pushed a commit to d47081/chess-server that referenced this issue Dec 10, 2023
programarivm added a commit that referenced this issue Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants