TsgcTURNServerProperties › Port

Port Property

UDP port the TURN server listens on; defaults to 3478 as reserved by RFC 5766.

Syntax

property Port: Integer read GetPort write SetPort;

Default Value

Remarks

Port is the UDP port on which the server accepts client requests: Binding Requests, ALLOCATE, REFRESH, CREATE-PERMISSION, CHANNEL-BIND, Send-Indication and ChannelData messages all arrive on this port. RFC 5766 reserves 3478 for plain TURN/UDP and 5349 for TURN over TLS; use a different value only when the deployment explicitly requires it. Relay sockets assigned to each Allocation use a separate, ephemeral port taken from the TURNOptions.Allocation.MinPort–MaxPort range and are unrelated to this value. Changes to Port while the server is active require a restart (Active = False / True) to take effect.

Example

oTURN.Port := 3478;
oTURN.Active := True;

Back to Properties