TsgcSTUNServerProperties › Port

Port Property

UDP port the STUN server listens on; defaults to 3478 as reserved by RFC 5389.

Syntax

property Port: Integer read GetPort write SetPort;

Default Value

Remarks

Port is the UDP port on which the server accepts STUN Binding Requests from clients. RFC 5389 reserves 3478 for UDP/TCP STUN and 5349 for STUN over TLS; use a different value only when the deployment explicitly requires it. Clients must target the same port (see TsgcSTUNClient.Port). Changes to Port while the server is active require a restart (Active = False / True) to take effect.

Example

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

Back to Properties