Gets NAT info from STUN server.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
public static STUN_Result Query( string host, int port, IPEndPoint localEP )
Public Shared Function Query ( host As String, port As Integer, localEP As IPEndPoint ) As STUN_Result
public: static STUN_Result^ Query( String^ host, int port, IPEndPoint^ localEP )
static member Query : host : string * port : int * localEP : IPEndPoint -> STUN_Result
Parameters
- host (String)
- STUN server name or IP.
- port (Int32)
- STUN server port. Default port is 3478.
- localEP (IPEndPoint)
- Local IP end point.
Return Value
STUN_Result
Returns UDP netwrok info.
Returns UDP netwrok info.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Is raised when host or localEP is null reference. |
Exception | Throws exception if unexpected error happens. |
Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119