# Connect 2 node-red with tcp

**URL:** <https://discourse.nodered.org/t/connect-2-node-red-with-tcp/30556>\
**Category:** General\
**Created:** [22 July 2020 14:57 UTC](https://discourse.nodered.org/t/connect-2-node-red-with-tcp/30556 "2020-07-22T14:57:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [22 July 2020 15:54 UTC](https://discourse.nodered.org/t/connect-2-node-red-with-tcp/30556/2 "2020-07-22T15:54:40Z")

</div>

Is there any solid reason why you wish to use TCP?

If it is just to send values back and forth, MQTT might be a better solution (no need to handle disconnections etc)

It is very easy to get going with MQTT.

This would help get you started (if you need a leg up)...

> [@Linking 2 or more instances on a local network](https://discourse.nodered.org/t/linking-2-or-more-instances-on-a-local-network/24879/3):
>
> It would have been easier and more future proofing to read up on MQTT (IMO). Heres the 30sec intro... MQTT is a Client Server publish/subscribe messaging transport protocol. It is light weight, open, simple, and designed so as to be easy to implement" An MQTT client (node-red / IoT sensor / whatever) publishes to an MQTT broker a topic and payload are sent in each publish a topic is a string e.g. "house/bedroom/light" or "machine/1/motor/speed" a payload is anything you want (boolean tr…

---

_[View the full topic](https://discourse.nodered.org/t/connect-2-node-red-with-tcp/30556)._
