连接到远程 UDP 组播服务

发布于 2024-09-27 00:29:58 字数 229 浏览 7 评论 0原文

如果我有服务所在的 IP 地址(例如 70.70.70.70)、要连接的多播组(例如 224.25.25.25)以及如何连接到远程 udp 多播端口(例如 2020)?

我使用 ACE 框架,在嗅探器中我看到 ACE 发送 IGMP 数据包到 224.0.0.2,以便加入一个组,但我的家庭路由器(检查点)不知道如何处理它。

How to connect to remote udp multicast if I have an IP address where the service resided (say 70.70.70.70), the multicast group to connect (say 224.25.25.25) and port (say 2020)?

I use ACE framework and in the sniffer I see that ACE sends IGMP packet to 224.0.0.2, in order to join a group, but my home router (checkpoint) doesn't know what to do with it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(4

星星的轨迹 2024-10-04 00:29:58

路由器很少被制造和配置为支持将多播数据包重新发送到其他网络。换句话说,多播通常只能通过一个子网进行工作。在大多数情况下,互联网上的多播基于在对等点之间建立 TCP 连接并使用该 TCP 连接之上的某种传输来发送消息(查找有关面向消息的中间件的信息)。

如果您有某个特定的服务器,欢迎您加入其多播,也许您可​​以提供有关该服务器提供的功能以及需要配置的更多详细信息。

Routers are rarely made and configured to support resending multicast packets to other networks. In other words, multicasts usually work only via one subnet. In most cases multicast over internet is based on establishing TCP connection between peers and sending messages using some transport on top of that TCP connection (look for information about message-oriented middleware).

If you have some particular server, which welcomes you to join to it's multicast, maybe you can provide more details about what this server offers and what it needs to be configured.

陌上芳菲 2024-10-04 00:29:58

我只看到多播在本地子网上工作,所以一个好的第一个测试是在本地计算机上设置多播服务,看看它是否有效。我从来没有成功地让多播用于远程服务,只有在所有路由器都可以控制的地方,比如在公司防火墙后面。看起来它应该有效,我想看看一般情况下有效的例子......

I've only seen multicast work on local subnets, so a good first test is to setup the multicast service on a local computer, and see if that works. I've never had success getting multicast to work for remote services, only places where all routers can be controlled, like behind a corporate firewall. Seems like it should work, and I'd like to see examples of the general case working...

≈。彩虹 2024-10-04 00:29:58

您需要 IP 隧道,基本的 VPN 服务就可以工作,但您可能需要高于此的多播路由,具体取决于您的配置。向 serverfault 或超级用户寻求更多帮助。

You need IP tunneling, a basic VPN service would work but you might need multicast routing above that depending upon your configuration. Wander over to serverfault or superuser for more help.

看春风乍起 2024-10-04 00:29:58

我有一个服务所在的 IP 地址
居住地(例如 70.70.70.70)

你不需要那个。

要连接的多播组(例如
224.25.25.25)

你需要这个。您需要使用该地址发出加入组操作。

和端口(比如 2020 年)?

您应该有一个 UDP 套接字侦听该端口。

I have an IP address where the service
resided (say 70.70.70.70)

You don't need that.

the multicast group to connect (say
224.25.25.25)

You need that. You need to issue the join-group operation using that address.

and port (say 2020)?

You should have a UDP socket listening at that port.

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