How To Reply On TCP in Specified Port?

Hi All,

I want to send a payload through a different TCP port, now I use TCP Out as the sender of the payload.
image

The problem is that the payload I sent is received by another port.

How do I send the payload according to the port that I specified so it won't be sent to all TCP?

Please Help Me,

have you tried using the Type Connect to?

Hi @zenofmud

It's not working. So my payload is command to read modbus with buffer. When i use "reply to TCP", it's working and i can get the modbus value (but problem is the other port received the same command).

[{"id":"5d62f0e6.6b5028","type":"inject","z":"386a7be.6758384","name":"total delay","topic":"","payload":"","payloadType":"date","repeat":"30","crontab":"","once":true,"onceDelay":0.1,"x":440,"y":1230,"wires":[["9ba50239.468ea"]]},{"id":"9ba50239.468ea","type":"function","z":"386a7be.6758384","name":"VSD Address from 3200 qty:10","func":"msg.payload  = Buffer.from('01030C80000AC775', 'hex'); //address for equest Modbus\nreturn msg;","outputs":1,"noerr":0,"x":890,"y":1230,"wires":[["ba564eb.2b94d3"]]},{"id":"ba564eb.2b94d3","type":"tcp out","z":"386a7be.6758384","host":"","port":"","beserver":"reply","base64":false,"end":false,"name":"","x":1390,"y":1230,"wires":[]},{"id":"ea29b5ce.335ed8","type":"tcp in","z":"386a7be.6758384","name":"","server":"server","host":"","port":"1919","datamode":"stream","datatype":"buffer","newline":"","topic":"","base64":false,"x":690,"y":1340,"wires":[["6d366ed5.366668"]]},{"id":"6d366ed5.366668","type":"debug","z":"386a7be.6758384","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":950,"y":1340,"wires":[]}]

Hopefully someone else will chime in. I haven't played with the nodes, my suggestion was based on a quick look.

Did you resolve this issue? I also have the same issue where I send data simultaneously on ports 2000 & 2001 but the responses get mixed up across nodes.

@New2Node and @mrizkywiguna Did you resolve this issue? I am running in to the same problem..