|
Re: Obtaining Routers IP
This is small script I wrote to see what's connected to my system at any time. Copy the text into a pinger.bat file and run as the echo command suggests.
Put the .bat file into the C:\ directory, open a cmd box and use.
I find it useful to see if any of my fixed IP devices have shut down or stopped. i.e. My SB radios, cameras that are all fixed IP. Laptop, phone and tablet that aren't.
Enjoy!
@echo off
echo Use as "Pinger 192 168 1 10 20 to see attached devices between 192.168.1.10 & 192.168.1.20
SET t=%4
:start
ping -n 1 -l 1 -w 200 %1.%2.%3.%t% >nul
if %errorlevel%==0 echo Host %1.%2.%3.%t% RESPONDED
if %errorlevel%==1 echo Host %1.%2.%3.%t% IGNORED
SET /a t=t+1
If %t%==%5 Goto End
if %t%==254 Goto End
Goto start:
:End
echo COMPLETE
Pause
|