edtFTPnet/Free - Open-source FTP component for .NET | Download

FTPConnectionServerAddress Property

The domain-name or IP address of the FTP server.

Definition

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnet (in edtFTPnet.dll) Version: 2.2.3.0
C#
public virtual string ServerAddress { get; set; }

Property Value

String

Remarks

This property may only be set if not currently connected.

Example

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

See Also