TsgcSTUNClientProperties › Port

Port Property

Listening port of the STUN server; defaults to 3478 as defined by RFC 5389.

Syntax

property Port: Integer read GetPort write SetPort;

Default Value

Remarks

Set Port to the UDP or TCP port where the STUN server is listening. RFC 5389 reserves 3478 for UDP/TCP and 5349 for TLS. Change this value when connecting to a server that uses a non-default port.

Example

oSTUN.Host := 'stun.sgcwebsockets.com';
oSTUN.Port := 3478;
oSTUN.SendRequest;

Back to Properties