Skip to content

Default user cannot connect to a Web MQTT endpoint remotely but can when port forwarding is used #14275

Closed Locked Answered by michaelklishin
AntoineSadzot asked this question in Questions
Discussion options

You must be logged in to vote

Connect to web_mqtt interface from a remote host in the same cluster, using mqtt.js library
"ws://:15675/ws" -> client has connection error (refused or failed)

The default user can only connect from localhost for obvious security reasons. Port forwarding makes the connection look as if it was a local one but a direct remote connection is expected to be refused.

Remote connections from loopback-restricted users will result in clear messages in the log files of the node that refuses such a connection.

As Production Guidelines recommend, create a new user with generated credentials instead of relying on the default one (named guest by default). The loopback connection restriction won't app…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by michaelklishin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #14275 on July 22, 2025 16:27.