# Connection failed to the broker

**URL:** <https://discourse.nodered.org/t/connection-failed-to-the-broker/10913>\
**Category:** General\
**Created:** [8 May 2019 08:28 UTC](https://discourse.nodered.org/t/connection-failed-to-the-broker/10913 "2019-05-08T08:28:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![manal](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@manal](https://discourse.nodered.org/u/manal)\
**Post date:** [8 May 2019 08:28 UTC](https://discourse.nodered.org/t/connection-failed-to-the-broker/10913/1 "2019-05-08T08:28:07Z")

</div>

Hi,  
Node-red suddenly stops connection with my broker in another device.  
the broker is active and running, and I ping the devices in both sides, they are connected.  
the only message in node-red "connection failed to broker:mqtt://ip address.  
I reboot both of them many times, but no change, I have the same error  
could you help me to figure out the problem, please?

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [8 May 2019 08:30 UTC](https://discourse.nodered.org/t/connection-failed-to-the-broker/10913/2 "2019-05-08T08:30:10Z")

</div>

Try connecting using a different MQTT client from the same machine as you a running Node-RED on. That way you can see if its a Node-RED issue or a machine issue

---

<div class="post-metadata">

**Author:** ![manal](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@manal](https://discourse.nodered.org/u/manal)\
**Post date:** [8 May 2019 09:12 UTC](https://discourse.nodered.org/t/connection-failed-to-the-broker/10913/3 "2019-05-08T09:12:23Z")

</div>

Thanks a lot,  
I fixed it, the problem is the broker machine.
