DEBUG/SntpClient(61):请求时间失败:java.net.SocketException:协议不支持地址族
我正在使用 deacon 库在我的 Android 应用程序中获取推送通知。我实现了演示应用程序,但我无法从我的办公室连接连接到我的应用程序中的流星服务器。但是,当我尝试从家里连接时,它有效。似乎有什么东西阻止了我工作场所的连接。
当我在办公室以调试模式运行该应用程序时,出现错误 -
DEBUG/SntpClient(61): request time failed: java.net.SocketException: Address family not supported by protocol
问题可能是什么?我该如何检查/调试这个问题? 我想知道问题出在哪里,是连接问题还是得到响应问题?
I am using the deacon library for getting push notifications in my android application. I implemented the demo application, but I am not able to connect to the meteor server in my application from my office connection. However, when I try connecting from home, it works. Seems like something is blocking the connection at my workplace.
When I run the app in debug mode in the office, it gives the error -
DEBUG/SntpClient(61): request time failed: java.net.SocketException: Address family not supported by protocol
What could the problem be? How can I check/debug this issue?
I want to know where the problem lies, in the connection or in getting the response?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
SNTP 是网络时间协议。模拟器尝试获取实际时间。我认为,这与您的应用程序无关。
摘自:http://developer.appcelerator。 com/question/117495/javanetsocketexception-address-family-not-supported-by-protocol
SNTP is the Network Time Protocol. The emulator tries to fetch the actual time. I think, this has nothing to do with your app.
Taken From: http://developer.appcelerator.com/question/117495/javanetsocketexception-address-family-not-supported-by-protocol