TsgcTCPClient › Properties › Proxy
Routes the TCP connection through an HTTP or SOCKS proxy server.
property Proxy: TsgcWSProxy_Options read FProxy write SetProxy;
Enabled=False, Port=8080
Set Proxy.Enabled to True and fill in Host and Port to tunnel the connection through a proxy. Supported proxy types (ProxyType) are pxyHTTP, pxySocks4, pxySocks4A and pxySocks5. Username and Password are optional; leave them blank for anonymous authentication.
oTCP := TsgcTCPClient.Create(nil);
oTCP.Proxy.Enabled := true;
oTCP.Proxy.Username := 'user';
oTCP.Proxy.Password := 'secret';
oTCP.Proxy.Host := '80.55.44.12';
oTCP.Proxy.Port := 8080;
oTCP.Active := True;