I want to send one packet to the broadcast address, but wait for all responses.
If I do ping -c 1 192.168.1.255
, it sends just one packet, but it quits after getting the first response.
networkingping
I want to send one packet to the broadcast address, but wait for all responses.
If I do ping -c 1 192.168.1.255
, it sends just one packet, but it quits after getting the first response.
Best Answer
How would
ping
know that the responses it got really are all of them?To find out which hosts on a subnet are up, something like
nmap
is well suited. See the-sn
argument for Host Discovery: