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
Mosquitto Will Not Bind to Both IPv4 and IPv6 for Websockets. #2628
Comments
I believe it depends on how libwebsockets is compiled. It does not have support for IPv6 compiled in by default. |
@ralight : no. In my case, but also in the original problem, the IPv6 web-socket is selected by default, only with explicit configuration |
Hi, there is a similar issue reported under #1974 but it's marked as "resolved" by the bot. I believe this hasn't been resolved yet. Adding
socket_domain ipv4
to/etc/mosquitto/conf.d/default.conf
will only switch from IPv6 to IPv4 but how can one have Mosquitto bind to both IPv4 and IPv6 after enablingprotocol websockets
just like howprotocol mqtt
can bind to both IPv4 and IPv6 without any additional directives?I can reproduce this in Mosquitto version 2.0.11 running on Ubuntu 22.04.1 LTS. I used 41180 for Websocket and 41183 for MQTT protocol. Here's the netstat output before adding the
socket_domain ipv4
directive:Here it is after adding the
socket_domain ipv4
directive and restarting the service:Thanks in advance for your help.
The text was updated successfully, but these errors were encountered: