TsgcSTUNClient › Proprietà › Host
Indirizzo IP o nome DNS del server STUN al quale il client invia le Binding Request.
property Host: string read GetHost write SetHost;
—
Imposti Host sul nome host o sull'indirizzo IP del server STUN (ad esempio stun.sgcwebsockets.com). Combinato con Port, Transport e IPVersion, definisce l'endpoint utilizzato quando SendRequest emette una Binding Request. La maggior parte dei server STUN pubblici è in ascolto sulla porta UDP 3478 e non richiede autenticazione.
oSTUN := TsgcSTUNClient.Create(nil);
oSTUN.Host := 'stun.sgcwebsockets.com';
oSTUN.Port := 3478;
oSTUN.SendRequest;