# TCP out node multi-connection bug

**URL:** <https://discourse.nodered.org/t/tcp-out-node-multi-connection-bug/62745>\
**Category:** General\
**Created:** [17 May 2022 11:23 UTC](https://discourse.nodered.org/t/tcp-out-node-multi-connection-bug/62745 "2022-05-17T11:23:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![b10up](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/b10up/32/61723_2.png) [@b10up](https://discourse.nodered.org/u/b10up)\
**Post date:** [17 May 2022 11:23 UTC](https://discourse.nodered.org/t/tcp-out-node-multi-connection-bug/62745/1 "2022-05-17T11:23:06Z")

</div>

Hi,

I'm trying to create an IP microphone server using sox-record and tcp-out node.

Everything works, i can connect from multiple computers using VLC. The tcp out node status shows "2 connections" for example.

But when i close one of the two VLC players, the status box drops to "0 connections" and the other VLC player stops receiving the stream. I can reconnect, but when i close a player, the other stops too.

Tested with 5 VLC instances too, tcp-out node shows 5 connections as expected and all of them are working. But:  
When I close one of them, sometimes an another VLC stops, the counter shows 3 connections after 5.

Is this a bug, or i miss something?

```auto
[{"id":"d261283a459569df","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"186fa1d5e4a0ace5","type":"subflow","name":"Subflow 1","info":"","in":[{"x":60,"y":300,"wires":[]}],"out":[]},{"id":"9faf6efc5002df94","type":"trigger","z":"186fa1d5e4a0ace5","name":"","op1":"1","op2":"0","op1type":"val","op2type":"val","duration":"250","extend":"false","overrideDelay":"false","units":"ms","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":380,"y":300,"wires":[[]]},{"id":"d786908ee0e20260","type":"sox-record","z":"d261283a459569df","name":"","buttonStart":"msg","inputs":1,"inputSource":"1,0","manualSource":"","inputEncoding":"signed-integer","inputChannels":1,"inputRate":16000,"inputBits":16,"byteOrder":"-L","encoding":"signed-integer","channels":"1","rate":"48000","bits":"16","gain":"-5","buffer":"1024","showDuration":false,"durationType":"forever","durationLength":"0","silenceDetection":"nothing","silenceDuration":"2.0","silenceThreshold":"2.0","outputFormat":"stream","manualPath":"","debugOutput":false,"x":270,"y":60,"wires":[["9a6e2c30970cc444"],["050b087408efc5eb"]]},{"id":"050b087408efc5eb","type":"debug","z":"d261283a459569df","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":530,"y":160,"wires":[]},{"id":"f8923a7963a9ae73","type":"start-up-trigger","z":"d261283a459569df","x":140,"y":240,"wires":[["f009b8008b388638"]]},{"id":"f009b8008b388638","type":"change","z":"d261283a459569df","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"start","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":140,"y":140,"wires":[["d786908ee0e20260"]]},{"id":"9a6e2c30970cc444","type":"tcp out","z":"d261283a459569df","name":"","host":"","port":"65000","beserver":"server","base64":false,"end":false,"tls":"","x":480,"y":20,"wires":[]}]

```

---

<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:** [16 July 2022 11:23 UTC](https://discourse.nodered.org/t/tcp-out-node-multi-connection-bug/62745/2 "2022-07-16T11:23:22Z")

</div>

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