edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
Click or drag to resize

FTPConnectionServerAddress Property

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

Namespace:  EnterpriseDT.Net.Ftp
Assembly:  edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.3.0.0
Syntax
public virtual string ServerAddress { get; set; }

Property Value

Type: String
Remarks

This property may only be set if not currently connected.

Examples
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