IP addresses

  • Thread starter Thread starter Steve
  • Start date Start date
Steve said:
Hi

Is there any way to know all IP addresses of my network ?

Thanks

Steve

Yes - by pinging each of them:

@echo off
if exist c:\Address.txt del c:\Address.txt
for /L %%a in (1,1,254) do ping 192.168.0.%%a -n 1 |
find /i "bytes=" > nul && echo 192.168.0.%%a >> c:\Address.txt
(unwrap line)
 
-----Original Message-----



Yes - by pinging each of them:

@echo off
if exist c:\Address.txt del c:\Address.txt
for /L %%a in (1,1,254) do ping 192.168.0.%%a -n 1 |
find /i "bytes=" > nul && echo 192.168.0.%%a >> c:\Address.txt
(unwrap line)

Thanks Pagasus

Do I have to write in the same line at the command prompt
all the command line you gave?:

@echo off
if exist c:\Address.txt del c:\Address.txt
for /L %%a in (1,1,254) do ping 192.168.0.%%a -n 1 |
find /i "bytes=" > nul && echo 192.168.0.%%a >>
c:\Address.txt

Thanks

Steve
 
Steve said:
Thanks Pagasus

Do I have to write in the same line at the command prompt
all the command line you gave?:

@echo off
if exist c:\Address.txt del c:\Address.txt
for /L %%a in (1,1,254) do ping 192.168.0.%%a -n 1 |
find /i "bytes=" > nul && echo 192.168.0.%%a >>
c:\Address.txt

Thanks

Steve

I gave you the code for a batch file. It is best to paste my
lines into a batch file of your own, to avoid mistakes. You
can then run the batch file instead of typing in my command.
 
It might be easier to download a port scanner. Many give you the
functionality of pinging a range of IP addresses to determine if there is a
live host.
 
Thanks Rob

Please have you got a link ?

Steve
-----Original Message-----
It might be easier to download a port scanner. Many give you the
functionality of pinging a range of IP addresses to determine if there is a
live host.




.
 
Back
Top