Xceed .NET Libraries Documentation
ServerAddress Property (FtpClient)


Xceed.Ftp Assembly > Xceed.Ftp Namespace > FtpClient Class : ServerAddress Property
Gets the IP address and port to which the FTP client is connected.
Syntax
'Declaration
 
Public ReadOnly Property ServerAddress As IPEndPoint
'Usage
 
Dim instance As FtpClient
Dim value As IPEndPoint
 
value = instance.ServerAddress
public IPEndPoint ServerAddress {get;}

Property Value

A reference to an System.Net.IPEndPoint object representing the IP address and port to which the FTP client is connected. Can be a null reference (Nothing in Visual Basic) if the FTP client is not connected to an FTP server.
Remarks

The IP address of the FTP server can be retreived via the System.Net.IPEndPoint.Address property while the port can be retrieved via the System.Net.IPEndPoint.Port property.

This property can be considered to be the equivalent of the ServerAddress and ServerPort properties of the ActiveX version of the Xceed FTP Library.

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

FtpClient Class
FtpClient Members