Replies: 1 comment 2 replies
-
I think you should double check your rabbitmq.conf and ensure to have mqtt-broker:
image: rabbitmq
container_name: mqtt-broker
network_mode: host If it works it means the problem is the container ports are not accessible from localhost for some reasons. For sure this is not an MQTTjs related issue BTW |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have an MQTT broker running on a docker container:
I want to create a Node client running on the host machine, but I can't make it connect to the broker. Here is my code:
Here is what I get:
I tried to set the brokerUrl variables to other values such as 'mqtt://localhost:9001', 'mqtt://mqtt-broker:9001', 'mqtt://mqtt-broker:1883' but it has never worked. The "mqtt-broker" container is running without errors.
Beta Was this translation helpful? Give feedback.
All reactions