node-red-contrib-tcp-client

This node is a TCP client that listens for connections on specific port or connects to a specified host.
Unlike the default node-red tcp-in node, this one allows you to create dynamic TCP connections passed as arguments.
Allows stopping the connection by passing a "close" argument:

This project was developed specifically for XML over TCP with some parsing options but other formats should still be supported.
How it works:

To install:
Install node-red.
Install this package with "npm install node-red-contrib-tcp-client --save" in ~./node-red or via the Palette Manager in node-red.
If everything was successfull you should see the new tcp client node under the network category.
https://flows.nodered.org/node/node-red-contrib-tcp-client