The TCP Client remote is the counterpart of the TCP Server: mAirList connects to a TCP server, and executes each line received from that server as a remote control command.
This is useful when the device or software sending the commands can only act as a server, or to connect two mAirList instances (with a TCP Server remote on the other instance).
Configuration
In the configuration app or Control Panel, go to Remote Control and add an interface of type TCP Client (Network category).
- Host name or IP and Port: The address of the TCP server to connect to. The default port is 9303.
- Password:
If set, mAirList sends
AUTH <password>to the server after connecting. Use this when connecting to the TCP Server remote of another mAirList instance. - Command prefix: If set, only lines starting with this prefix (followed by a space) are executed, and the prefix is removed before execution. All other lines are ignored.
- Dummy mode: If checked, all incoming data is discarded and no commands are executed. Use this option when the connection is only used to send data from a script.
mAirList connects automatically when the interface is started, and tries to reconnect every few seconds if the connection is lost or cannot be established.
Scripting
A script can send data to the server using the SendString and WriteLine methods of
the interface, available through TCPClientRemote(<index>).
For sending a one-off string to a TCP server without setting up a remote control
interface, scripts can use the TCPSendString(Server, Port, Text) procedure.