TsgcSTUNServer › Properties › IPVersion
Address family used by the listening socket; defaults to IPv4.
property IPVersion: TIdIPVersion read GetIPVersion write SetIPVersion;
—
Set IPVersion to Id_IPv4 or Id_IPv6 to select the address family of the default binding created from Host/Port. To listen on both families simultaneously, leave the default binding on one family and add a second one with AddBinding. The XOR-MAPPED-ADDRESS returned to the client is always encoded with the family of the socket that received the request, regardless of this value.
oSTUN.IPVersion := Id_IPv4;
oSTUN.Port := 3478;
oSTUN.Active := True;