ComponentPro UltimateFtp

      Active and passive transfer modes

      Language Filter: AllSend comments on this topic to ComponentPro

      Ultimate FTP uses passive transfer mode by default to transfer data smoothly with most firewalls. You can change to Active transfer mode by setting the Passive property to false.

      // Create a new instance of the Ftp class. 
      using (Ftp client = new Ftp())
      {
          // Connect to the server. 
          client.Connect(serverName);
      
          client.Authenticate(userName, password);
      
          // Switch to Active mode 
          client.Passive = false;
      
          // ... 
          // Transfer files 
          // ...
      }