TsgcTURNServerProperties › Host

Host Property

Local IP address or host name the TURN server binds to when Active is set to True.

Syntax

property Host: string read GetHost write SetHost;

Default Value

Remarks

Host is the local interface on which the TURN server listens for client requests. Leave it empty (or use 0.0.0.0 for IPv4 / :: for IPv6) to bind every available interface, or set it to a specific address to restrict the listener to a single NIC. By default the same address is also used as the relay IP assigned to new Allocations; to expose the relay on a different interface set TURNOptions.Allocation.RelayIP. To listen on several interfaces simultaneously use AddBinding.

Example

oTURN.Host := '0.0.0.0';
oTURN.Port := 3478;
oTURN.Active := True;

Back to Properties