NET FTP Library
HostAddress Property
Example 






KellermanSoftware.NetFtpLibrary Namespace > FTP Class : HostAddress Property
Specifies the host name or IP Address of the FTP Server.
Syntax
'Declaration
 
Public Overridable Property HostAddress As System.String
'Usage
 
Dim instance As FTP
Dim value As System.String
 
instance.HostAddress = value
 
value = instance.HostAddress
public virtual System.string HostAddress {get; set;}
public read-write property HostAddress: System.String; virtual; 
public function get,set HostAddress : System.String
public: __property virtual System.string* get_HostAddress();
public: __property virtual void set_HostAddress( 
   System.string* value
);
public:
virtual property System.String^ HostAddress {
   System.String^ get();
   void set (    System.String^ value);
}
Example
// this is for the trial version. Uncomment and use the version you need
FTP ftp = new FTP(); //Trial Mode            
//FTP ftp = new FTP("place user name here", "place license key here");
 
// set the name of the FTP server( its URL )
ftp.HostAddress = "ftp.fsz.bme.hu"; // a hungarian university. change this to your ftp server
 
System.Console.WriteLine("The FTP server is {0}", ftp.HostAddress);
' this is for the trial version. Uncomment and use the version you need
Dim ftp As FTP = New FTP() 'Trial Mode
'FTP ftp = new FTP("place user name here", "place license key here");
 
' set the name of the FTP server( its URL )
ftp.HostAddress = "ftp.fsz.bme.hu" ' a hungarian university. change this to your ftp server
 
System.Console.WriteLine("The FTP server is {0}", ftp.HostAddress)
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

FTP Class
FTP Members