# How to connect to cloud hiveMQ broker?

**URL:** <https://discourse.nodered.org/t/how-to-connect-to-cloud-hivemq-broker/82830>\
**Category:** General\
**Created:** [13 November 2023 15:09 UTC](https://discourse.nodered.org/t/how-to-connect-to-cloud-hivemq-broker/82830 "2023-11-13T15:09:16Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![viniciusleite](https://avatars.discourse-cdn.com/v4/letter/v/54ee81/32.png) [@viniciusleite](https://discourse.nodered.org/u/viniciusleite)\
**Post date:** [13 November 2023 15:09 UTC](https://discourse.nodered.org/t/how-to-connect-to-cloud-hivemq-broker/82830/1 "2023-11-13T15:09:16Z")

</div>

How to connect to cloud hiveMQ broker?  
I've tried something and it worked, but now it isn't working anymore.  
Thanks in advance for helping.

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [13 November 2023 15:24 UTC](https://discourse.nodered.org/t/how-to-connect-to-cloud-hivemq-broker/82830/2 "2023-11-13T15:24:09Z")

</div>

Is this the public [broker.hivemq.com](http://broker.hivemq.com) or your own instance on their cloud

---

<div class="post-metadata">

**Author:** ![viniciusleite](https://avatars.discourse-cdn.com/v4/letter/v/54ee81/32.png) [@viniciusleite](https://discourse.nodered.org/u/viniciusleite)\
**Post date:** [13 November 2023 15:26 UTC](https://discourse.nodered.org/t/how-to-connect-to-cloud-hivemq-broker/82830/3 "2023-11-13T15:26:27Z")

</div>

I think it's my cloud instance.  
It's one of the clusters that is shown in the left side of the screen when I login

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [13 November 2023 15:32 UTC](https://discourse.nodered.org/t/how-to-connect-to-cloud-hivemq-broker/82830/4 "2023-11-13T15:32:08Z")

</div>

Do you mean this console screen?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/0/e029731f501c8acfbdd177e65bac32764aa835eb.png)

---

<div class="post-metadata">

**Author:** ![viniciusleite](https://avatars.discourse-cdn.com/v4/letter/v/54ee81/32.png) [@viniciusleite](https://discourse.nodered.org/u/viniciusleite)\
**Post date:** [13 November 2023 15:35 UTC](https://discourse.nodered.org/t/how-to-connect-to-cloud-hivemq-broker/82830/5 "2023-11-13T15:35:26Z")

</div>

Yes. This one.

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [13 November 2023 15:37 UTC](https://discourse.nodered.org/t/how-to-connect-to-cloud-hivemq-broker/82830/6 "2023-11-13T15:37:44Z")

</div>

My NR MQTT config to access mine is

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/9/a943b05a129388f32ccd4ff9dae6d34f67e1bfe9.png)

You'll need to fill in name of your instance and click on security to add in username/password

---

<div class="post-metadata">

**Author:** ![viniciusleite](https://avatars.discourse-cdn.com/v4/letter/v/54ee81/32.png) [@viniciusleite](https://discourse.nodered.org/u/viniciusleite)\
**Post date:** [13 November 2023 15:43 UTC](https://discourse.nodered.org/t/how-to-connect-to-cloud-hivemq-broker/82830/7 "2023-11-13T15:43:21Z")

</div>

In "server", do you insert your TLS URI or Cluster URL??

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [13 November 2023 15:55 UTC](https://discourse.nodered.org/t/how-to-connect-to-cloud-hivemq-broker/82830/8 "2023-11-13T15:55:35Z")

</div>

Mine is my Cluster URL

---

<div class="post-metadata">

**Author:** ![viniciusleite](https://avatars.discourse-cdn.com/v4/letter/v/54ee81/32.png) [@viniciusleite](https://discourse.nodered.org/u/viniciusleite)\
**Post date:** [13 November 2023 16:09 UTC](https://discourse.nodered.org/t/how-to-connect-to-cloud-hivemq-broker/82830/9 "2023-11-13T16:09:19Z")

</div>

13 Nov 13:06:01 - [info] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
13 Nov 13:06:01 - [info] Flows stopped in safe mode. Deploy to start.  
13 Nov 13:06:01 - [info] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
13 Nov 13:07:27 - [info] Stopping flows  
13 Nov 13:07:27 - [info] Stopped flows  
13 Nov 13:07:27 - [info] Updated flows  
13 Nov 13:07:27 - [info] Starting flows  
13 Nov 13:07:27 - [info] Started flows  
13 Nov 13:07:57 - [info] [mqtt-broker:hivemqBroker] Connection failed to broker: mqtts://6a37b76a917148c095bbd12ab6d7a20  
0.s1.eu.hivemq.cloud:8883

Not working.

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [13 November 2023 16:11 UTC](https://discourse.nodered.org/t/how-to-connect-to-cloud-hivemq-broker/82830/10 "2023-11-13T16:11:46Z")

</div>

Can you connect using MQTT Explorer?

My setup in there is

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/4/5497b47dada4327d2cafc92b0803e7143554111b.png)

---

<div class="post-metadata">

**Author:** ![viniciusleite](https://avatars.discourse-cdn.com/v4/letter/v/54ee81/32.png) [@viniciusleite](https://discourse.nodered.org/u/viniciusleite)\
**Post date:** [13 November 2023 16:13 UTC](https://discourse.nodered.org/t/how-to-connect-to-cloud-hivemq-broker/82830/11 "2023-11-13T16:13:34Z")

</div>

Is MQTT Explorer this software: [http://mqtt-explorer.com/](http://mqtt-explorer.com/)?

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [13 November 2023 16:14 UTC](https://discourse.nodered.org/t/how-to-connect-to-cloud-hivemq-broker/82830/12 "2023-11-13T16:14:26Z")

</div>

Yes

Its the swiss army knife for MQTT work 🙂

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [13 November 2023 16:20 UTC](https://discourse.nodered.org/t/how-to-connect-to-cloud-hivemq-broker/82830/13 "2023-11-13T16:20:55Z")

</div>

When I login to hivemq I see this

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/b/9bcf68d012e338b0b8ae2a0a388aba50ffe98d63.png)

That URL is the one I enter in the config Server field

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/a/0ae7b90453a20908a94235516327c401b6d19bbd.png)

On the Security tab, the username and password are not the same as I use to login at [hivemq.com](http://hivemq.com).  
You can see the username on the Access Management tab, I don't see any way to see or change the password but you can delete and recreate the user.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/d/bd5bcdff0fafbbed41a7c2188a662ec8f5a653e1.png)

---

<div class="post-metadata">

**Author:** ![viniciusleite](https://avatars.discourse-cdn.com/v4/letter/v/54ee81/32.png) [@viniciusleite](https://discourse.nodered.org/u/viniciusleite)\
**Post date:** [13 November 2023 16:44 UTC](https://discourse.nodered.org/t/how-to-connect-to-cloud-hivemq-broker/82830/14 "2023-11-13T16:44:23Z")

</div>

I think it is not connecting

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/d/3d564d6dee251e26d3f2307abaeb512243212802.png)  
The message "disconnected from the server" keeps showin on the bottom.  
I tried to activate the encryption but got the same message.

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [13 November 2023 16:48 UTC](https://discourse.nodered.org/t/how-to-connect-to-cloud-hivemq-broker/82830/15 "2023-11-13T16:48:15Z")

</div>

I don't have validate certificate enabled on mine

---

<div class="post-metadata">

**Author:** ![viniciusleite](https://avatars.discourse-cdn.com/v4/letter/v/54ee81/32.png) [@viniciusleite](https://discourse.nodered.org/u/viniciusleite)\
**Post date:** [13 November 2023 16:51 UTC](https://discourse.nodered.org/t/how-to-connect-to-cloud-hivemq-broker/82830/16 "2023-11-13T16:51:51Z")

</div>

Oh.  
Same result.

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [13 November 2023 16:55 UTC](https://discourse.nodered.org/t/how-to-connect-to-cloud-hivemq-broker/82830/17 "2023-11-13T16:55:15Z")

</div>

at his point I think your instance is unavailable (or your using wrong username/password)

Unfortunately, I don't think there is any support for the free option but it might be worth going onto their forum and seeing if someone picks up on it

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [13 November 2023 16:59 UTC](https://discourse.nodered.org/t/how-to-connect-to-cloud-hivemq-broker/82830/18 "2023-11-13T16:59:08Z")

</div>

Or maybe see what this does!

DANGER though!  
Maybe it'll delete and let you re-create (or maybe it'll just delete!!!!!)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/f/7f2a067772830cc17e8e815f76b19babb8dfcdd1.png)

---

<div class="post-metadata">

**Author:** ![viniciusleite](https://avatars.discourse-cdn.com/v4/letter/v/54ee81/32.png) [@viniciusleite](https://discourse.nodered.org/u/viniciusleite)\
**Post date:** [13 November 2023 17:04 UTC](https://discourse.nodered.org/t/how-to-connect-to-cloud-hivemq-broker/82830/19 "2023-11-13T17:04:23Z")

</div>

I tried deleting the other cluster I have, can't create another one in this free plan.

---

<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:** [12 January 2024 17:04 UTC](https://discourse.nodered.org/t/how-to-connect-to-cloud-hivemq-broker/82830/20 "2024-01-12T17:04:26Z")

</div>

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