Gets or sets the proxy information to use for connecting and/or logging in through a proxy server.


      public FtpProxy Proxy { get; set; }


      The FtpProxy to use to access a remote server.


      Shows how to use the FtpProxy class.

      using ComponentPro.Net;
      // Create a new Ftp instance.
      Ftp client = new Ftp();
      client.Proxy = new FtpProxy();
      client.Proxy.Server = "myproxyhost";
      client.Proxy.Port = 2121; // replace 2121 with your port number.
      client.Proxy.ProxyType = FtpProxyType.User;
      client.Proxy.UserName = "proxyusername";
      client.Proxy.Password = "proxypassword";
      // Connect to the FTP server.
      // Authenticate.
      client.Authenticate("username", "password");
      // Do something here. You can browse directories, list files, upload, download,... 
      // ...
      client.DownloadFile("/my remote file.dat", "my local file");
      // Disconnect.


      .NET Compact Framework.NET Compact Framework

      Supported version: 2.0, 3.5, and 3.9
      Assembly: ComponentPro.Ftp.CF (in ComponentPro.Ftp.CF.dll)

      .NET Framework.NET Framework

      Supported version: 2.0, 3.0, 3.5, 4.0, 4.5.x, 4.6.x and later
      Assembly: ComponentPro.Ftp (in ComponentPro.Ftp.dll)

      Xamarin AndroidXamarin Android

      Supported version: 2.3 and later
      Assembly: ComponentPro.Ftp.Android (in ComponentPro.Ftp.Android.dll)

      Xamarin MacXamarin Mac

      Supported version: 2.0.x and later
      Assembly: ComponentPro.Ftp.Mac (in ComponentPro.Ftp.Mac.dll)

      Xamarin iOSXamarin iOS

      Supported version: 5.1.x and later
      Assembly: ComponentPro.Ftp.iOS (in ComponentPro.Ftp.iOS.dll)

      See Also