# Two instances of Node-Red communicating via TTN (MQTT)?

**URL:** https://discourse.nodered.org/t/two-instances-of-node-red-communicating-via-ttn-mqtt/74048
**Category:** General
**Tags:** mqtt
**Created:** [22 January 2023 10:39 UTC](https://discourse.nodered.org/t/two-instances-of-node-red-communicating-via-ttn-mqtt/74048 "2023-01-22T10:39:22Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![zeirix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zeirix/32/62694_2.png) [@zeirix](https://discourse.nodered.org/u/zeirix)
#### Post date: [22 January 2023 10:39 UTC](https://discourse.nodered.org/t/two-instances-of-node-red-communicating-via-ttn-mqtt/74048/1 "2023-01-22T10:39:22Z")

</div>

Hello everybody,

I've some questions about using TTN as a message broker for Node-Red.

- Is it possible, that an instance of Node-Red is sending messages via TTN (MQTT, HTTP) to another instance of Node-Red, thus avoiding a direct connection (no need to set up an own MQTT broker, no need to open TCP/UDP ports)?

- Do I need a "real" hardware node, pushing messages over a radio (e.g. LoRa) network, with preconfigured EUIs to set up a device inside a TTN application?

- As far as I know, the node-red-contrib-ttn node isn't supported anymore, but i didn't find a successor for that. How do I have to configure the MQTT-node (topic, QoS,...) now?

Thanks a lot!

---

<div class="post-metadata">

### Author: ![hominidae](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hominidae/32/4174_2.png) [@hominidae](https://discourse.nodered.org/u/hominidae)
#### Post date: [22 January 2023 11:51 UTC](https://discourse.nodered.org/t/two-instances-of-node-red-communicating-via-ttn-mqtt/74048/2 "2023-01-22T11:51:20Z")

</div>

...of course you can use a cloud based MQTT broker as intermediate to communicate between (many) NR instances.  
I don't know TTN, but cloudMQTT and hivemq are the ones i am using.  
Make sure that you use a poper authenticated and TLS/SSLbased connection.

---

<div class="post-metadata">

### Author: ![zeirix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zeirix/32/62694_2.png) [@zeirix](https://discourse.nodered.org/u/zeirix)
#### Post date: [22 January 2023 17:55 UTC](https://discourse.nodered.org/t/two-instances-of-node-red-communicating-via-ttn-mqtt/74048/3 "2023-01-22T17:55:56Z")

</div>

Hi hominidae,

I was thinking at least about HiveHQ, too, but at the moment I am using TTN for another application (with a LoRa device) and it offers a freemium 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: [23 March 2023 17:56 UTC](https://discourse.nodered.org/t/two-instances-of-node-red-communicating-via-ttn-mqtt/74048/4 "2023-03-23T17:56:12Z")

</div>

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