Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I ping a range of addresses starting with A and ending with B?

share|improve this question
5  
Do you mean Windows command line or really MS-DOS? –  Dennis May 4 '12 at 19:14

2 Answers 2

To speed up the admittedly slow answer above, and assuming the node you seek is on the lan or a fast wan, add a timeout to the ping (20 milliseconds here):

for /l %i in (1,1,255) do ping -w 20 -n 1 192.168.0.%i | find /i "Reply"

This is useful if you don't have a proper utility and you don't have a port or want to do a broad port scan, or if the client isn't listening on any port.

share|improve this answer

You could use a for loop to ping each IP address one at a time, but this is incredibly slow.

for /l %i in (1,1,255) do ping -n 1 192.168.0.%i | find /i "Reply"
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.