Gets the local client
EndPoint.
public EndPoint LocalEndPoint { get; }
Public ReadOnly Property LocalEndPoint As EndPoint
public:
property EndPoint LocalEndPoint {
EndPoint get();
}
Value
The
EndPoint that the component is using for communications.
Remarks
The
LocalEndPoint property gets an
EndPoint that contains the local IP address and port number to which your Socket is bound.
You must cast this
EndPoint to an
IPEndPoint before retrieving any information.
You can then call the
Address method to retrieve the local
IPAddress, and the
Port method to retrieve the local port number.