Create a TCP server and send messages to client

I need to create a TCP server to which a media player software (Coolux Pandoras Box) will connect.
This is simple, but I should use that same server to send commands to the client...how do I do that?
Thanks!

I guess that I should send the command to the TCP port that the client uses to connect to the server, but the TCP out node doesn't support dynamic ports...
And the clients that connects to Node Red TCP server doesn't send anything, so I don't know the port which the connection starts from.

Well the client must connect to a known port on your (Node-RED) server - so you must know what that is... it can't just connect randomly.

Of course i know the port which the clients connects to, but I don't know the port the clients connects from to send it the command

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