组播Ping(Windows)

组播Ping(Windows)

问题描述:

我正在尝试实现服务器自动发现,以便客户端将能够看到可用于连接的服务器列表.我想自动发现服务器,即使它们位于不同的子网中也是如此.

I am trying to implement server auto discovery so that clients will be able to see a list of servers available to connect to. I would like to auto discover servers even if they are in different subnets.

我已经阅读到Windows无法响应广播ping,但是是否可以使所有这些服务器加入多播组并在该组上使用多播ping来查看哪些服务器正在运行?

I have read that windows does not respond to broadcast ping, but is it possible to make all these servers to join a multicast group and use multicast ping on the group to see what servers are up?

谢谢

尝试零配置网络(Zeroconf).

请注意,多个LAN网段要求将路由器配置为路由多播流量,默认情况下不配置.通常,通常建议启用IGMP的交换机用于计算机连接.

Note multiple LAN segments requires routers to be configured to route multicast traffic, they do not by default. Similarly IGMP enabled switches are usually recommended for computer connectivity.