java.io.IOException:在 MacOS X Snow Leopard 上没有使用 MulticastSocket 到主机的路由

发布于 2024-11-08 04:25:23 字数 450 浏览 10 评论 0原文

我有一个使用多播的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

聚集的泪 2024-11-15 04:25:23

没有到主机的路由是由于您的进程从您和目标 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文