Feb
23
2017

Ping a range of IPs

C:\>for /l %i in (1,1,254) do @ping 192.168.1.%i -n 1 -w 100 | find "Reply"

This will ping all addresses from 192.168.1.1 to 192.168.1.254 one time each, wait 100ms for a reply (more than enough time on a local network) and show only the addresses that replied.

Syntax for FOR /L is (start,step,end) if you want to change the range.

Also, note that the Windows FIND is case sensitive, so make sure you capitalize “Reply,” or else use the /i switch or just “eply.”

About the Author: Neil Frost

Husband to Laura, Dad to Adam. Follower of Jesus

Comments are closed.

Latest Workouts

Lastest Rides

Try These

Worship Central

NetApp Tech Reports