# How to distinguish TCP connections with TCP IN/OUT nodes?

**URL:** https://discourse.nodered.org/t/how-to-distinguish-tcp-connections-with-tcp-in-out-nodes/83801
**Category:** General
**Created:** [18 December 2023 09:32 UTC](https://discourse.nodered.org/t/how-to-distinguish-tcp-connections-with-tcp-in-out-nodes/83801 "2023-12-18T09:32:28Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [18 December 2023 09:59 UTC](https://discourse.nodered.org/t/how-to-distinguish-tcp-connections-with-tcp-in-out-nodes/83801/6 "2023-12-18T09:59:49Z")

</div>

Again add a debug to the tcp in node, set to full message object and look at the \_session object. The \_session object has to make it to the out node. It has nothing to do with port numbers.

---

_[View the full topic](https://discourse.nodered.org/t/how-to-distinguish-tcp-connections-with-tcp-in-out-nodes/83801)._
