TsgcSTUNServerProperties › IPVersion

IPVersion Property

Address family used by the listening socket; 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 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.

Example

oSTUN.IPVersion := Id_IPv4;
oSTUN.Port := 3478;
oSTUN.Active := True;

Back to Properties