# Verbindung zum mqtt Broker nicht möglich

**URL:** https://discourse.nodered.org/t/verbindung-zum-mqtt-broker-nicht-moglich/55331
**Category:** General
**Tags:** mqtt
**Created:** [17 December 2021 08:00 UTC](https://discourse.nodered.org/t/verbindung-zum-mqtt-broker-nicht-moglich/55331 "2021-12-17T08:00:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![rowu](https://avatars.discourse-cdn.com/v4/letter/r/45deac/32.png) [@rowu](https://discourse.nodered.org/u/rowu)
#### Post date: [17 December 2021 08:00 UTC](https://discourse.nodered.org/t/verbindung-zum-mqtt-broker-nicht-moglich/55331/1 "2021-12-17T08:00:17Z")

</div>

Guten Morgen, ich bekomme seit einigen Tagen diese Fehlermeldung beim Starten vom Node-red server... Habe zwischen der IP von meinem PI wie auch localhost ausgetestet, jedoch ohne abhilfe. In den Zahlreichen Internet Dokumentationen machen es alle mit Localhost nur ist jetzt meine frage woran es potenziell liegen könnte? Bei fragen zu den flows oder sonstigen Konfigurationsdatein einfach gerne fragen 🙂

Vielen Dank im vorraus 😃

```auto
17 Dec 08:54:54 - [info] [mqtt-broker:3ce6388.1c845c8] Verbindung zum Broker mqtt://(meineIP):1883 konnte nicht hergestellt werden

```

Good morning, I have been getting this error message for a few days when starting the Node-red server ... I tested between the IP of my PI and localhost, but without any remedy. In the numerous Internet documentations, everyone does it with localhost, but now my question is what could potentially be the cause? If you have any questions about the flows or other configuration files, just ask: slight\_smile:

Thank you in advance: smiley:

`Connection to broker mqtt: //(myIP):1883 could not be established`

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [17 December 2021 08:12 UTC](https://discourse.nodered.org/t/verbindung-zum-mqtt-broker-nicht-moglich/55331/2 "2021-12-17T08:12:24Z")

</div>

1. was this ever working?
2. what are you using as the MQTT broker?
3. you can use localhost if the mqtt broker is running on the same device that node-red is runing on - is this the case?
4. if this ever worked, what other changes have you made to your systems/network?

---

<div class="post-metadata">

### Author: ![rowu](https://avatars.discourse-cdn.com/v4/letter/r/45deac/32.png) [@rowu](https://discourse.nodered.org/u/rowu)
#### Post date: [17 December 2021 12:31 UTC](https://discourse.nodered.org/t/verbindung-zum-mqtt-broker-nicht-moglich/55331/3 "2021-12-17T12:31:50Z")

</div>

Hi, i got it working now. I forgot to determine the username and password from the mqtt broker in node-red

---

<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: [31 December 2021 12:32 UTC](https://discourse.nodered.org/t/verbindung-zum-mqtt-broker-nicht-moglich/55331/4 "2021-12-31T12:32:04Z")

</div>

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