Following code shows how to download files from FTP server using a proxy server. Implicit TLS/SSL security is used.
// initialize FTP client
Ftp client = new Ftp();
// setup proxy details
client.Proxy.ProxyType = FtpProxyType.Socks5;
client.Proxy.Host = proxyHostname;
client.Proxy.Port = proxyPort;
// add proxy username and password when needed
client.Proxy.UserName = proxyUsername;
client.Proxy.Password = proxyPassword;
// connect using TLS/SSL implicit. For unencrypted connection use
// client.Connect(hostname, port);
client.Connect(hostname, 990, null, FtpSecurity.Implicit);
client.Login(username, password);
// download file
client.GetFile("test.zip", @"c:\data\test.zip");
// disconnect
client.Disconnect();
Additional reading: