# Connection to MQTT broker not possible

**URL:** <https://discourse.nodered.org/t/connection-to-mqtt-broker-not-possible/42455>\
**Category:** General\
**Created:** [11 March 2021 08:38 UTC](https://discourse.nodered.org/t/connection-to-mqtt-broker-not-possible/42455 "2021-03-11T08:38:44Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![UnborN](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@UnborN](https://discourse.nodered.org/u/UnborN)\
**Post date:** [11 March 2021 09:36 UTC](https://discourse.nodered.org/t/connection-to-mqtt-broker-not-possible/42455/5 "2021-03-11T09:36:55Z")

</div>

What version of mosquitto do you have installed ?

In your `mosquitto.conf` file add the lines below because by default the new version 2.0 doesnt allow remote connections by default. [Link](https://mosquitto.org/blog/2020/12/version-2-0-0-released/)

```auto
allow_anonymous true
listener 1883

```

---

_[View the full topic](https://discourse.nodered.org/t/connection-to-mqtt-broker-not-possible/42455)._
