开发者

How to send a multicast ping using .NET?

开发者 https://www.devze.com 2023-01-13 12:43 出处:网络
How can I send a multicast ping in .NET ? So that all computers 开发者_StackOverflowon the network respond ?Assuming you mean \"broadcast ping\" (I get the two confused All The Time, myself):

How can I send a multicast ping in .NET ? So that all computers 开发者_StackOverflowon the network respond ?


Assuming you mean "broadcast ping" (I get the two confused All The Time, myself):
Fetch the local network gateway IP, change the last byte to 255, ping that IP.

The main problem with your approach though is that the set of all devices on the network that will respond to a broadcast ping is typically much smaller than the set of all devices on the network. I've found that while most devices will respond to a direct ping, very few will respond to a broadcast ping. It's implementation dependant.

0

精彩评论

暂无评论...
验证码 换一张
取 消