TsgcSTUNServer › Properties › Port
UDP port the STUN server listens on; defaults to 3478 as reserved by RFC 5389.
property Port: Integer read GetPort write SetPort;
—
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.
oSTUN.Port := 3478;
oSTUN.Active := True;