-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
Cannot bind IPv6 [::] (any) #58
Comments
Thanks for reporting! The example code essentially executes this under the hood: $a = stream_socket_server('tcp://0.0.0.0:9988');
$b = stream_socket_server('tcp://[::]:9988'); Which emits the very same error. If you omit the first server, then the second works just fine. It looks like this is intended behavior. I hope this helps 👍 |
If that's intended how to open a socket for both v6/v4? |
Maybe this is related? |
I'm on linux and indeed this happens to be true. Using just the IPv6 [::] address listens on both the stacks, because my ubuntu server has 0 in |
Thanks for confirming this! 👍 I've just filed feature request #59 so you may eventually specify the |
For the reference, #64 introduced the required socket context options, so you may want to check out the v0.4.6 release 👍 |
This fails with:
Exception 'React\Socket\ConnectionException' with message 'Could not bind to tcp://[::]:9988: Address already in use'
But address is not in use, in fact if I replace :: with the actual machine public IPv6 address works fine.
The text was updated successfully, but these errors were encountered: