<< Unity 3D: A rough and ready computation of normals - useful for procedural meshes | Home | Preview release of KHI 2D technology coming soon >>

Find awake IP addresses on a subnet using a batch file

I seem to frequently find myself trying to find machines by IP address on a subnet. Often I'm on a random Windows machine and I've got nothing but the basic install to do it. What do I do? Good 'o batch script. You can find machines awake on a subnet using a script like this. I might call it find_ip.bat



@echo off
SET t=0
:start
SET /a t=t+1
ping -n 1 -l 1 192.168.0.%t% > nul
if %errorlevel%==0 echo Host 192.168.0.%t% is UP!
IF %t%==254 Exit
Goto start



Just substitute your IP subnet for 192.168.0.x and away you go.
Avatar: montdidier

Re: Find awake IP addresses on a subnet using a batch file

At the command prompt you can create find_ip.bat using the window built in editor "edit".