首頁>Computer>source

此問题在此之前被問過: https://networkengineering.stackexchange.com/questions/71813/testing-multicast-problem< / p>

但是我却被指在這裏。

我使用此工具:https://www.winsocketdotnetworkprogramming.com/winsock2programming/winsock2advancedmulticast9a. html

關闭windows防火墙和ESET安全防火墙。

使用:

C:\2>ipconfig
Windows IP Configuration
Ethernet adapter Połączenie lokalne:
   Connection-specific DNS Suffix  . :
   IPv4 Address. . . . . . . . . . . : 192.168.1.103
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.1.1
Ethernet adapter Ethernet 2:
   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
C:\2>mcastws1.exe -b 192.168.1.103 -s
socket handle = 0x000000BC
Binding to 192.168.1.103
Joined group: [224.0.0.255]:25000
Set sending interface to: 0.0.0.0
Set multicast ttl to: 8
Sent 1024 bytes to [224.0.0.255]:25000
Sent 1024 bytes to [224.0.0.255]:25000
Sent 1024 bytes to [224.0.0.255]:25000
Sent 1024 bytes to [224.0.0.255]:25000
Sent 1024 bytes to [224.0.0.255]:25000
Sent 1024 bytes to [224.0.0.255]:25000
Sent 1024 bytes to [224.0.0.255]:25000
Sent 1024 bytes to [224.0.0.255]:25000
^C
C:\2>

我得到這樣的結果:

z:\2>ipconfig
Windows IP Configuration
Ethernet adapter Ethernet:
   Connection-specific DNS Suffix  . :
   IPv4 Address. . . . . . . . . . . : 192.168.1.102
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.1.1
z:\2>mcastws1.exe -b 192.168.1.102
socket handle = 0x00000100
Binding to [192.168.1.102]:25000
Joined group: [224.0.0.255]:25000
Set sending interface to: 0.0.0.0
Set multicast ttl to: 8
^C
z:\2>

Question: 為什麼我没有得到類似的結果: https://www.winsocketdotnetworkprogramming.com/winsock2programming/winsock2advancedmulticast9_files/winsock2multicast009.png< / p>

最新回復
  • 5月前
    1 #

    為什麼我没有得到類似的結果

    第一个例子是 -smcastws1.exe的尽頭 命令:

    mcastws1.exe -b 192.168.1.103 -s
    

    其中

    -s 是充当服務器(發送資料); 否則接收資料

    来源:windows套接字的IPv4多播程式設計教程

    尝試添加 -s 標記第二个示例。

  • networking:我的Synology NAS是否被黑客入侵?
  • virtualbox:無法获得CloneVDI或VBoxManage来縮小VDI