-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Websockets - bind address/host in listener doesn't work for websockets protocol #3045
Comments
is that the whole configuration?
|
running this tiny config in a container for 2.0.11 has the same issue. 2.0.12 does not. |
I'm facing a similar issue except that I am using 2.0.18. config is: listener 1884 netstat shows successful connections on 1883 but nothing even listening on 1884, even though the log during starting states Jun 18 15:14:31 servername mosquitto[253693]: 1718723671: mosquitto version 2.0.18 starting |
Tested on RaspberryPi, Mosquitto version 2.0.11
Application doesn't respect the bind address/host option for listener parameter when using websockets protocol. After changing protocol to MQTT everything works fine.
Tested configuration entry
listener 9001 127.0.0.1
protocol websockets
netstat output
masta@rpi-masta:/etc/mosquitto $ sudo netstat -tulnp | grep mosquitto
tcp 0 0 127.0.0.1:1883 0.0.0.0:* LISTEN 3583/mosquitto
tcp6 0 0 :::9001 :::* LISTEN 3583/mosquitto
The text was updated successfully, but these errors were encountered: