java 如何在 Windows 上找到多播地址

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4207417/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 05:18:42  来源:igfitidea点击:

How to find the multicast address on Windows

javamulticast

提问by Myn

I'm afraid this is going to be a ridiculously stupid question, you might be able to tell networking is not my strong point, but how can I find the multicast address I am currently connected to?

恐怕这将是一个可笑的愚蠢问题,您可能会说网络不是我的强项,但是我如何找到我当前连接的多播地址?

I was given an application that listens to a multicast address which works fine on one computer, but throws SocketExceptions on another.

我得到了一个应用程序,它侦听多播地址,该地址在一台计算机上运行良好,但在另一台计算机上抛出 SocketExceptions。

I apologise for the vagueness and stupidity of this question but any advice is greatly appreciated. :)

对于这个问题的含糊和愚蠢,我深表歉意,但非常感谢任何建议。:)

M

回答by Nikolai Fetissov

If I remember correctly it's something like

如果我没记错的话是这样的

netsh interface ip show joins

in the DOS prompt to see what multicast groups are being listened to.

在 DOS 提示符下查看正在侦听的多播组。