CoAPnet icon indicating copy to clipboard operation
CoAPnet copied to clipboard

what wrong

Open Aaron198513 opened this issue 1 year ago • 2 comments

发生异常: CLR/CoAPnet.Exceptions.CoapCommunicationException “CoAPnet.Exceptions.CoapCommunicationException”类型的异常在 System.Private.CoreLib.dll 中发生,但未在用户代码中进行处理: 'Error while resolving DNS name.' 发现内部异常,有关更多详细信息,请参阅变量窗口中的 $exception。 最里面的异常 System.Net.Sockets.SocketException : 不知道这样的主机。 在 CoAPnet.LowLevelClient.LowLevelCoapClient.<ResolveIpEndPoint>d__12.MoveNext() 在 c:\Users\19112\Desktop\github\CoAPnet-master\CoAPnet-master\Source\CoAPnet\LowLevelClient\LowLevelCoapClient.cs 中: 第 118 行

Aaron198513 avatar Jul 03 '24 12:07 Aaron198513

To me it looks like that the DNS name could not be resolved. Maybe the DNS server is not reachable?

chkr1011 avatar Jul 05 '24 17:07 chkr1011

thanks you! but There is another problem here. When I enter the wrong IP and port to call the ConnectAsync method, no exception will be thrown.there is an example.When I enter the ip as 127.0.0.2 the port is 6666.The code will continue to execute

Aaron198513 avatar Aug 21 '24 02:08 Aaron198513