TsgcUDPCLientProperties › Proxy

Proxy Property

Optional SOCKS5 proxy through which UDP datagrams are tunneled.

Syntax

property Proxy: TsgcUDPProxy_Options read FProxy write SetProxy;

Default Value

Remarks

Configures a SOCKS5 proxy used to relay UDP datagrams when the local host cannot reach the destination directly. Set Enabled := True and fill in Host and Port with the address of the proxy server; provide Username and Password when the proxy requires authentication, or leave them blank for anonymous access. Only SOCKS5 proxies support UDP relaying; HTTP, SOCKS4 and SOCKS4a proxies do not carry datagrams. The proxy settings must be assigned before the first WriteData call.

Example

oClient.Proxy.Enabled := True;
oClient.Proxy.Host := 'proxy.example.com';
oClient.Proxy.Port := 1080;
oClient.Proxy.Username := 'user';
oClient.Proxy.Password := 'pass';

Back to Properties