|
How to connect to an FTP server
|
|
Connecting to an FTP server with edtFTPnet/PRO is simply a matter of:
FTPConnection ftpConnection = new FTPConnection();
2. Setting the address and login properties
ftpConnection.ServerAddress = "";
ftpConnection.ServerPort = serverPort;
ftpConnection.UserName = userName;
ftpConnection.Password = password;
3. Calling the Connect() method.
ftpConnection.Connect();
The Connect call will return when it's successfully connected and logged into the server, or
throw an exception if it fails to connect or log in.