# Node Red 'connecting' to HIVE MQ

**URL:** <https://community.hivemq.com/t/node-red-connecting-to-hive-mq/1603>\
**Category:** HiveMQ Cloud\
**Created:** [November 16, 2022, 8:28pm UTC](https://community.hivemq.com/t/node-red-connecting-to-hive-mq/1603 "2022-11-16T20:28:13Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![octava](https://avatars.discourse-cdn.com/v4/letter/o/85e7bf/32.png) [@octava](https://community.hivemq.com/u/octava)\
**Post date:** [November 16, 2022, 8:28pm UTC](https://community.hivemq.com/t/node-red-connecting-to-hive-mq/1603/1 "2022-11-16T20:28:13Z")

</div>

I am using Node Red install on a Raspberry Pi  
When using the HIVE Public Broker ( port 1883) , we are getting connected and working  
When using the HIVE Cloud Broker( port 8883), the MQTT node just shows the yellow “connecting” message and thus not working.

 ![mq](https://canada1.discourse-cdn.com/flex035/uploads/hivemq1/original/1X/8de96b6b3d763bd3e182722d6f8cab15a1f23f2f.png)

I have checked our Network Router and opened the NAT Gaming Port 8883 for the Raspberry pi , but that still does not solve the problem.  
Any ideas?

---

<div class="post-metadata">

**Author:** ![michael\_w](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.hivemq.com/michael_w/32/200_2.png) [@michael\_w](https://community.hivemq.com/u/michael_w)\
**Post date:** [November 17, 2022, 8:58am UTC](https://community.hivemq.com/t/node-red-connecting-to-hive-mq/1603/2 "2022-11-17T08:58:24Z")

</div>

Hi @octava,

the public broker does not have any TLS listener whereas the Cloud broker has only TLS listeners.

For you this mean you need to check the “Enable secure (SSL/TLS) connection” box (you can see it in your image already).

As for setting up TLS with Node Red I redirect you to this thread: [Node-Red TLS connection](https://community.hivemq.com/t/node-red-tls-connection/586)

Greetings,  
Michael from the HiveMQ team

---

<div class="post-metadata">

**Author:** ![octava](https://avatars.discourse-cdn.com/v4/letter/o/85e7bf/32.png) [@octava](https://community.hivemq.com/u/octava)\
**Post date:** [November 17, 2022, 3:36pm UTC](https://community.hivemq.com/t/node-red-connecting-to-hive-mq/1603/3 "2022-11-17T15:36:31Z")

</div>

Hi Michael,  
Thank you for the response.  
I did just now set the “Enable secure (SSL/TLS) connection”  
1.entered the user and Passcode that matches the cluster.  
2. Also followed instruction to include a “server/CA certificate” from the FAQ  
Downloaded from the FAQ…

 ![mq3](https://canada1.discourse-cdn.com/flex035/uploads/hivemq1/original/1X/05eb24b5ca0158e902447269620d3fac0de116ff.png)

However it is the same issue, the MQTT node just sits there at “CONNECTING”

---

<div class="post-metadata">

**Author:** ![Daria\_H](https://avatars.discourse-cdn.com/v4/letter/d/dfb087/32.png) [@Daria\_H](https://community.hivemq.com/u/Daria_H)\
**Post date:** [November 17, 2022, 5:17pm UTC](https://community.hivemq.com/t/node-red-connecting-to-hive-mq/1603/4 "2022-11-17T17:17:28Z")

</div>

Hi @octava ,

Try setting the Client ID and test again:

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/hivemq1/original/1X/e26a06bf002e084759031c426398c66897545a01.png)

I hope it helps.

Kind regards,  
Dasha from HiveMQ team

---

<div class="post-metadata">

**Author:** ![octava](https://avatars.discourse-cdn.com/v4/letter/o/85e7bf/32.png) [@octava](https://community.hivemq.com/u/octava)\
**Post date:** [November 17, 2022, 6:10pm UTC](https://community.hivemq.com/t/node-red-connecting-to-hive-mq/1603/5 "2022-11-17T18:10:33Z")

</div>

Hi Michael,  
Entered a client ID ‘myPi1’.  
But still the MQTT node still just hangs at “connecting” instead of ‘connected’ ( green)

If anyone has a working NodeRed ‘flow’, please kindly share. As I can see lot of NodeRed community members would want to work IoT with the HIVE MQ

---

<div class="post-metadata">

**Author:** ![octava](https://avatars.discourse-cdn.com/v4/letter/o/85e7bf/32.png) [@octava](https://community.hivemq.com/u/octava)\
**Post date:** [November 17, 2022, 9:45pm UTC](https://community.hivemq.com/t/node-red-connecting-to-hive-mq/1603/6 "2022-11-17T21:45:35Z")

</div>

Finally got it working.  
Did a clean install of:

1. Raspberry OS
2. Re-installed Node  
 ![mqworking](https://canada1.discourse-cdn.com/flex035/uploads/hivemq1/original/1X/99e189f4f56f8526efc609f9222276cd0f5eae09.png)  
Red and NODE JS using instructions here.  
[Running on Raspberry Pi : Node-RED](https://nodered.org/docs/getting-started/raspberrypi)

So I believe the problem is with node.js version and Node Red versions

---

<div class="post-metadata">

**Author:** ![picaxe](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@picaxe](https://community.hivemq.com/u/picaxe)\
**Post date:** [February 10, 2024, 7:34pm UTC](https://community.hivemq.com/t/node-red-connecting-to-hive-mq/1603/7 "2024-02-10T19:34:35Z")

</div>

Thanks for the above posts. I agree that it looks like Node Red is a great way to set up dashboards trends and plots etc. In my case I hope to replicate a system that tracks and detects thermal (occupation of nest box) data from penguins and also aligns RFID tags on the birds to better track seasonal and long term breeding and nesting behavior.

Perhaps a specific topic area for Node Red could be set up by admin ?  
The above type of concise post would be a good starter fixed top of list topic.  
I would like to share insights as I work out how to set up trends and social media triggers etc for the researchers.

Thanks  
~ Andrew

---

<div class="post-metadata">

**Author:** ![picaxe](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@picaxe](https://community.hivemq.com/u/picaxe)\
**Post date:** [February 10, 2024, 8:12pm UTC](https://community.hivemq.com/t/node-red-connecting-to-hive-mq/1603/8 "2024-02-10T20:12:00Z")

</div>

![image](https://canada1.discourse-cdn.com/flex035/uploads/hivemq1/original/1X/913a7803be348d1bf6ce98e107a8866441973e68.jpeg)

Etc
