TsgcSTUNClient › Properties › IPVersion
Address family used to resolve the STUN server; defaults to IPv4.
property IPVersion: TIdIPVersion read GetIPVersion write SetIPVersion;
—
Set IPVersion to Id_IPv4 or Id_IPv6 to select the address family used by the underlying socket when resolving Host. Use IPv6 on networks that provide only IPv6 connectivity or when the STUN server only advertises AAAA records.
oSTUN.IPVersion := Id_IPv4;
oSTUN.Host := 'stun.sgcwebsockets.com';
oSTUN.Port := 3478;
oSTUN.SendRequest;