# Connection failed to broker ()

**URL:** <https://discourse.nodered.org/t/connection-failed-to-broker/60968>\
**Category:** General\
**Tags:** mqtt\
**Created:** [8 April 2022 09:40 UTC](https://discourse.nodered.org/t/connection-failed-to-broker/60968 "2022-04-08T09:40:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bilel](https://avatars.discourse-cdn.com/v4/letter/b/f0a364/32.png) [@bilel](https://discourse.nodered.org/u/bilel)\
**Post date:** [8 April 2022 09:40 UTC](https://discourse.nodered.org/t/connection-failed-to-broker/60968/1 "2022-04-08T09:40:59Z")

</div>

![Capture d’écran 2022-04-08 103601](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/a/ca2687213ea372b1c0d68d100262bb4f6b5b9feb.png)

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [8 April 2022 09:45 UTC](https://discourse.nodered.org/t/connection-failed-to-broker/60968/2 "2022-04-08T09:45:49Z")

</div>

Hi @bilel

I'm not sure what help we can provide with just a screenshot and no information about what you are trying to do.

The first question to ask is - are you running a broker? Node-RED doesn't include one.

---

<div class="post-metadata">

**Author:** ![bilel](https://avatars.discourse-cdn.com/v4/letter/b/f0a364/32.png) [@bilel](https://discourse.nodered.org/u/bilel)\
**Post date:** [8 April 2022 09:49 UTC](https://discourse.nodered.org/t/connection-failed-to-broker/60968/3 "2022-04-08T09:49:13Z")

</div>

hi @knolleary  
im just running node red and i got this message (i m trying to connect esp8266 to rpi pi3)

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [8 April 2022 09:50 UTC](https://discourse.nodered.org/t/connection-failed-to-broker/60968/4 "2022-04-08T09:50:24Z")

</div>

So you are trying to connect to a broker running on the same machine as Node-RED - but you aren't running a broker, so it cannot connect.

Hope that answers your question.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [7 June 2022 09:50 UTC](https://discourse.nodered.org/t/connection-failed-to-broker/60968/5 "2022-06-07T09:50:32Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
