java.io.IOException:在 MacOS X Snow Leopard 上没有使用 MulticastSocket 到主机的路由
我有一个使用多播的 java 应用程序来宣传某些实体 - 当我几周前尝试该应用程序时,一切都工作正常。但是,情况不再是这样:
java.io.IOException: No route to host
当未更改的应用程序再次启动时,我收到异常。应用程序正在将 DatagramPackets 发送到 224.0.0.1。
我当前的系统是 Mac OS X Snow Leopard (10.6.7),安装了 Java 1.6.0_24。
我尝试了多种方法,得到了以下结果: - 谷歌搜索 ->一些建议,到目前为止没有任何帮助 - 禁用防火墙->不成功 - 禁用网络接口(强制其使用环回)->不成功 - 在 Win 机器上运行 ->成功,所以我认为它肯定与当前(或更改/更新)的系统配置有关
任何指针或建议都非常感谢!
干杯
I have a java application using multicast in order to advertise some entity - all worked fine when I tried the application a couple of weeks back. However, this is not the case anymore: I'm getting a
java.io.IOException: No route to host
exception when the unchanged application is started again. The application is sending DatagramPackets to 224.0.0.1.
My current system is Mac OS X Snow Leopard (10.6.7) with Java 1.6.0_24 installed.
I've tried out several approaches with the following outcomes:
- search google -> some suggestions, none of which helped so far
- disable firewall -> not successful
- disable network interface (to force it to use the loopback) -> not successful
- running it on Win machine -> successful, so I assume it definitely has something to do with the current (or changed/updated) system configuration
Any pointers or suggestions are greatly appreciated!
Cheers
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有到主机的路由
是由于您的进程从您和目标 IP 之间的路径上的某个路由器接收到 ICMP“主机无法访问”消息而导致的。由于您是在多播地址上获得此信息,因此我怀疑您的路由器配置有问题。No route to host
is caused by your process receiving an ICMP "host unreachable" message from some router on the path between you and the destination IP. Since you're getting this on a multicast address, I'd suspect something wrong with your router configuration.