edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing

SecureFTPConnectionServerAddress Property

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

Definition

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.7.0.0
C#
public override string ServerAddress { get; set; }

Property Value

String

Remarks

This property may only be set if not currently connected.

Example

The following example illustrates an SFTP client connecting to a server:
SecureFTPConnection ftp = new SecureFTPConnection(); ftp.Protocol = FileTransferProtocol.SFTP; ftp.ServerAddress = "my-server-name"; ftp.UserName = "my-username"; ftp.Password = "my-password"; ftp.AuthenticationMethod = AuthenticationType.Password; ftp.ServerValidation = SecureFTPServerValidationType.None; ftp.Connect(); ftp.Close();

See Also