TsgcSTUNClientProperties › Transport

Transport Property

Transport used to connect to the STUN server: UDP, TCP or TLS. Default is UDP.

Syntax

property Transport: TsgcStunTransport read FTransport write FTransport;

Default Value

Remarks

RFC 5389 defines UDP as the default STUN transport; TCP and TLS-over-TCP are also supported. Use stUDP for classic deployments (and to combine with RetransmissionOptions), stTCP when UDP is blocked, and stTLS for encrypted transport. When TLS is selected the default STUN-over-TLS port is 5349.

Example

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

Back to Properties