edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
The domain-name or IP address of the FTP server.

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 9.4.0.40

Syntax

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

Remarks

This property may only be set if not currently connected.

Examples

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

See Also