Gets suitable local IP end point for the specified remote endpoint.
If there are multiple sending local end points, they will be load-balanched with round-robin.

C# | Visual Basic | Visual C++ | F# |
public IPEndPoint GetLocalEndPoint( IPEndPoint remoteEP )
Public Function GetLocalEndPoint ( remoteEP As IPEndPoint ) As IPEndPoint
public: IPEndPoint^ GetLocalEndPoint( IPEndPoint^ remoteEP )
member GetLocalEndPoint : remoteEP : IPEndPoint -> IPEndPoint

- remoteEP (IPEndPoint)
- Remote end point.

IPEndPoint
Returns local IP end point.
Returns local IP end point.

Exception | Condition |
---|---|
ArgumentNullException | Is raised when argument remoteEP is null. |
ArgumentException | Is raised when argument remoteEP has invalid value. |
InvalidOperationException | Is raised when no suitable IPv4 or IPv6 socket for remoteEP. |
Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119