ComponentSpace FTP Class Library Reference

FtpClient.Connect Method (String)

Connects to the server as an anonymous user. A user name of anonymous will be used and a nonexistent email address will be used for the password.

[Visual Basic]
Overloads Public Sub Connect( _
   ByVal serverAddress As String _
)
[C#]
public void Connect(
   string serverAddress
);

Parameters

serverAddress
The server address (eg. 207.46.133.140 or ftp.microsoft.com).

Remarks

After connecting an attempt will be made to login anonymously.

Exceptions

Exception Type Condition
FtpException Thrown when the connect fails.

See Also

FtpClient Class | ComponentSpace.Ftp Namespace | FtpClient.Connect Overload List