# Connection failed to broker: mqtt ://192.168.1.8:1883

**URL:** <https://discourse.nodered.org/t/connection-failed-to-broker-mqtt-192-168-1-8-1883/52315>\
**Category:** General\
**Created:** [17 October 2021 07:01 UTC](https://discourse.nodered.org/t/connection-failed-to-broker-mqtt-192-168-1-8-1883/52315 "2021-10-17T07:01:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajaySh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ajaysh/32/49527_2.png) [@ajaySh](https://discourse.nodered.org/u/ajaySh)\
**Post date:** [17 October 2021 07:01 UTC](https://discourse.nodered.org/t/connection-failed-to-broker-mqtt-192-168-1-8-1883/52315/1 "2021-10-17T07:01:32Z")

</div>

Hi Can someone help me with this.  
Have disabled Firewall just in case, but am not able to connect.  
I am sorry but i am very new at this.

# C:\>NOdE-Red 17 Oct 12:22:10 - [info] Welcome to Node-RED

17 Oct 12:22:10 - [info] Node-RED version: v2.0.6  
17 Oct 12:22:10 - [info] Node.js version: v13.14.0  
17 Oct 12:22:10 - [info] Windows\_NT 6.1.7601 x64 LE  
17 Oct 12:22:10 - [info] Loading palette nodes  
17 Oct 12:22:11 - [info] Settings file : C:\Users\Admin.node-red\settings.js  
17 Oct 12:22:11 - [info] Context store : 'default' [module=memory]  
17 Oct 12:22:11 - [info] User directory : \Users\Admin.node-red  
17 Oct 12:22:11 - [warn] Projects disabled : editorTheme.projects.enabled=false  
17 Oct 12:22:11 - [info] Flows file : \Users\Admin.node-red\flows.json  
17 Oct 12:22:11 - [info] Server now running at [http://127.0.0.1:1880/](http://127.0.0.1:1880/)  
17 Oct 12:22:11 - [warn]

* * *

Your flow credentials file is encrypted using a system-generated key.  
If the system-generated key is lost for any reason, your credentials  
file will not be recoverable, you will have to delete it and re-enter  
your credentials.  
You should set your own key using the 'credentialSecret' option in  
your settings file. Node-RED will then re-encrypt your credentials  
file using your chosen key the next time you deploy a change.  
17 Oct 12:22:11 - [info] Starting flows  
17 Oct 12:22:11 - [info] Started flows  
17 Oct 12:22:12 - [info] [mqtt-broker:Broker1] Connection failed to broker: mqtt  
://192.168.1.8:1883

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [17 October 2021 07:07 UTC](https://discourse.nodered.org/t/connection-failed-to-broker-mqtt-192-168-1-8-1883/52315/2 "2021-10-17T07:07:11Z")

</div>

If you are using mosquitto v2.x you need to modify the conf file to allow external connections.

It's been covered quite a few times (search the forum)

---

<div class="post-metadata">

**Author:** ![ajaySh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ajaysh/32/49527_2.png) [@ajaySh](https://discourse.nodered.org/u/ajaySh)\
**Post date:** [18 October 2021 04:34 UTC](https://discourse.nodered.org/t/connection-failed-to-broker-mqtt-192-168-1-8-1883/52315/3 "2021-10-18T04:34:16Z")

</div>

Got It thanks a Lot.

---

<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:** [17 December 2021 04:34 UTC](https://discourse.nodered.org/t/connection-failed-to-broker-mqtt-192-168-1-8-1883/52315/4 "2021-12-17T04:34:21Z")

</div>

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