Ping all addresses in network, windows

前端 未结 11 1516
庸人自扰
庸人自扰 2021-01-30 00:14

Is it possible in windows cmd line to check all of the network addresses (with ping or similar) to see which ones are taken/ have active devices:

ie. something that does

11条回答
  •  攒了一身酷
    2021-01-30 00:47

    Provided the windows box is in the same subnet:

    for /L %a in (1,1,254) do start ping 192.168.0.%a
    

    This will complete in less than 15 seconds and

    arp -a 
    

    will return any alive host.

    Fastest native way I know of in Windows.

提交回复
热议问题