Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what wrong #18

Open
Aaron198513 opened this issue Jul 3, 2024 · 2 comments
Open

what wrong #18

Aaron198513 opened this issue Jul 3, 2024 · 2 comments

Comments

@Aaron198513
Copy link

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

@chkr1011
Copy link
Owner

chkr1011 commented Jul 5, 2024

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

@Aaron198513
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants