TsgcTURNClient › Properties › IPVersion
Address family used to resolve the TURN 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. The value also determines the REQUESTED-ADDRESS-FAMILY attribute sent in the ALLOCATE request (RFC 6156), which asks the TURN server to allocate a relayed transport address in the same family.
oTURN.IPVersion := Id_IPv4;
oTURN.Host := 'turn.sgcwebsockets.com';
oTURN.Port := 3478;
oTURN.Allocate;