TsgcTURNClientProperties › Port

Port Property

Listening port of the TURN server; defaults to 3478 as defined by RFC 5766.

Syntax

property Port: Integer read GetPort write SetPort;

Default Value

Remarks

Set Port to the UDP or TCP port where the TURN server is listening. RFC 5766 shares the STUN reservation: 3478 for UDP/TCP and 5349 for TLS. Change this value when the TURN deployment uses a non-default port (many managed TURN services expose 443 to traverse restrictive firewalls).

Example

oTURN.Host := 'turn.sgcwebsockets.com';
oTURN.Port := 3478;
oTURN.Allocate;

Back to Properties