# How to close a tcp connection initiated by a client

**URL:** <https://discourse.nodered.org/t/how-to-close-a-tcp-connection-initiated-by-a-client/79261>\
**Category:** Industrial\
**Created:** [16 June 2023 18:21 UTC](https://discourse.nodered.org/t/how-to-close-a-tcp-connection-initiated-by-a-client/79261 "2023-06-16T18:21:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vapourlyric](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@vapourlyric](https://discourse.nodered.org/u/vapourlyric)\
**Post date:** [16 June 2023 18:21 UTC](https://discourse.nodered.org/t/how-to-close-a-tcp-connection-initiated-by-a-client/79261/1 "2023-06-16T18:21:20Z")

</div>

Hi everyone,  
I am utilizing a tcp in node with the type set to "Listen on". I am able to receive messages from connected clients, generate a reply to these messages with a complex data flow and finally send the reply to these clients with the tcp out node with the type set to "Reply to TCP". However, these clients are expecting the tcp server (my node red flow) to close the tcp connection. I was not able to figure out how to do that. Am I missing something?

---

<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:** [15 August 2023 18:21 UTC](https://discourse.nodered.org/t/how-to-close-a-tcp-connection-initiated-by-a-client/79261/2 "2023-08-15T18:21:27Z")

</div>

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