TsgcSTUNClient › Properties › Host

Host Property

IP address or DNS name of the STUN server to which the client sends Binding Requests.

Syntax

property Host: string read GetHost write SetHost;

Default Value

—

Remarks

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.

Example

oSTUN := TsgcSTUNClient.Create(nil);
oSTUN.Host := 'stun.sgcwebsockets.com';
oSTUN.Port := 3478;
oSTUN.SendRequest;

Back to Properties