TsgcSTUNClient › Properties › Transport
Transport used to connect to the STUN server: UDP, TCP or TLS. Default is UDP.
property Transport: TsgcStunTransport read FTransport write FTransport;
—
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.
oSTUN.Transport := stUDP;
oSTUN.Host := 'stun.sgcwebsockets.com';
oSTUN.Port := 3478;
oSTUN.SendRequest;