TsgcTCPClient › Properties › Port
TCP port used to connect to the remote server.
property Port: Integer read FPort write FPort;
0
Defines the listening port of the remote server. Any port accepted by the server is allowed; the value is protocol-agnostic because no WebSocket handshake is performed, only a raw TCP (or TLS) session. When TLS is enabled the same port is used and the TLS handshake runs immediately after the socket is accepted.
oTCP := TsgcTCPClient.Create(nil);
oTCP.Host := 'www.esegece.com';
oTCP.Port := 2053;
oTCP.TLS := true;
oTCP.Active := true;