edtFTPnet/Free - Open-source FTP component for .NET | Download
The domain-name or IP address of the FTP server.

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnet (in edtFTPnet.dll) Version: 2.2.3.0

Syntax

C#
public virtual string ServerAddress { get; set; }
Visual Basic
Public Overridable Property ServerAddress As String
	Get
	Set
Visual C++
public:
virtual property String^ ServerAddress {
	String^ get ();
	void set (String^ value);
}

Remarks

This property may only be set if not currently connected.

Examples

The following example illustrates an FTP client connecting to a server:
 Copy imageCopy
            FTPConnection ftp = new FTPConnection();
            ftp.ServerAddress = "my-server-name";
            ftp.UserName = "my-username";
            ftp.Password = "my-password";
            ftp.Connect();
            ftp.Close();
            

See Also