TsgcSTUNClient › Properties › Host
IP address or DNS name of the STUN server to which the client sends Binding Requests.
property Host: string read GetHost write SetHost;
—
Set Host to the hostname or IP address of the STUN server (for example stun.sgcwebsockets.com). Combined with Port, Transport and IPVersion, it defines the endpoint used when SendRequest issues a Binding Request. Most public STUN servers listen on UDP port 3478 and do not require authentication.
oSTUN := TsgcSTUNClient.Create(nil);
oSTUN.Host := 'stun.sgcwebsockets.com';
oSTUN.Port := 3478;
oSTUN.SendRequest;