An NDoc Documented Class Library |

# FTPClient.Connect Method

Connect to the FTP server.

public virtual void Connect();

#### Implements

IFileTransferClient.Connect

#### Remarks

The RemoteHost property must be set prior to calling this method. This method must be called before Login or User is called.

This method will throw an `FTPException` if the client is already connected to the server.

#### See Also

FTPClient Class | EnterpriseDT.Net.Ftp Namespace