TsgcSTUNClientProperties › IPVersion

IPVersion Property

Address family used to resolve the STUN server; defaults to IPv4.

Syntax

property IPVersion: TIdIPVersion read GetIPVersion write SetIPVersion;

Default Value

Remarks

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.

Example

oSTUN.IPVersion := Id_IPv4;
oSTUN.Host := 'stun.sgcwebsockets.com';
oSTUN.Port := 3478;
oSTUN.SendRequest;

Back to Properties