How?,Connect to ftp server through Ftps protocol using FtpProxy.
Please try the code below (choose the FtpProxyType based on your proxy type):
// create FTP client instance var ftp = new Rebex.Net.Ftp(); // use FTP OPEN proxy or choose the proxy type that you need ftp.Proxy.ProxyType = FtpProxyType.FtpOpen; ftp.Proxy.Host = proxyHost; ftp.Proxy.Port = proxyPort; ftp.Proxy.UserName = proxyUserName; ftp.Proxy.Password = proxyPassword; // connect to the server ftp.Connect(hostname, SslMode.Implicit); // use SslMode.Implicit or SslMode.Explicit based on your FTP server ftp.Login(username, password); // etc. ftp.Disconnect();
Basically we support these Ftp proxy types:
More information including code snippets for all supported proxy server types can be found at http://www.rebex.net/ftp-ssl.net/features/proxy.aspx
Welcome to Q&A forum for C# and VB.NET developers working with following .NET components:
Applications:
If you need immediate assistance, please contact us directly.