# NodeRed MQTT bridge?

**URL:** <https://discourse.nodered.org/t/nodered-mqtt-bridge/55308>\
**Category:** General\
**Created:** [16 December 2021 17:39 UTC](https://discourse.nodered.org/t/nodered-mqtt-bridge/55308 "2021-12-16T17:39:49Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [17 December 2021 10:39 UTC](https://discourse.nodered.org/t/nodered-mqtt-bridge/55308/21 "2021-12-17T10:39:21Z")

</div>

> [@dclear](#):
>
> Yeah like I said it's a VPN connection - between two sites

What kind of VPN setup? A VPN between 2 sites would normally mean that both local networks are connected and you shouldn't need an external address - indeed, the whole point is that routing over the VPN is a local route.

The only reason this wouldn't be the case is if you are using a consumer VPN provider at both ends. That is a different kind of VPN (one that lets you appear to be in a different country for example).

---

<div class="post-metadata">

**Author:** ![csmale](https://avatars.discourse-cdn.com/v4/letter/c/c89c15/32.png) [@csmale](https://discourse.nodered.org/u/csmale)\
**Post date:** [19 December 2021 20:43 UTC](https://discourse.nodered.org/t/nodered-mqtt-bridge/55308/22 "2021-12-19T20:43:12Z")

</div>

Just a thought... Are you sure that all connections to Mosquitto use a unique MQTT Client ID? Otherwise it will kill the existing connection when a different connection is opened with the same Client ID.

---

<div class="post-metadata">

**Author:** ![justjoe96](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/justjoe96/32/53017_2.png) [@justjoe96](https://discourse.nodered.org/u/justjoe96)\
**Post date:** [29 December 2021 20:22 UTC](https://discourse.nodered.org/t/nodered-mqtt-bridge/55308/23 "2021-12-29T20:22:25Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/2/42bc8b69416df8e8f424976524a941e5a1071173.png)  
You can also just do this. Set up the left side to broker 1 and fill out the topic as Topic/# and the right side set up for broker 2 and leave the topic blank. This will cause everything from broker 1 under topic to be sent to broker 2 under that same topic. It's a great way to aggregate data from a bunch of small brokers on the same subnet to a large broker in the cloud without setting up credentials for each individual smaller broker.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [30 December 2021 16:35 UTC](https://discourse.nodered.org/t/nodered-mqtt-bridge/55308/24 "2021-12-30T16:35:33Z")

</div>

That only works in one direction. The OP wanted to bridge in both directions at the same time.

---

<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:** [28 February 2022 16:36 UTC](https://discourse.nodered.org/t/nodered-mqtt-bridge/55308/25 "2022-02-28T16:36:01Z")

</div>

Closed on 28 February 2022 16:36 UTC

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

[Previous page](https://discourse.nodered.org/t/nodered-mqtt-bridge/55308.md?page=1)
