Scanning LAN IPs
Scanning LAN IPs
Dear all,
I am trying to get a list of all active local IPs on a LAN - including two chromecast devices. The attached yad script does show a list but it varies - sometimes it is complete. It runs a scan function twice (just for testing), because the second time round it is more complete. Weird. Any ideas or better solutions?
With kind regards,
vovchik
I am trying to get a list of all active local IPs on a LAN - including two chromecast devices. The attached yad script does show a list but it varies - sometimes it is complete. It runs a scan function twice (just for testing), because the second time round it is more complete. Weird. Any ideas or better solutions?
With kind regards,
vovchik
- Attachments
-
- lanscan-gui.tar.gz
- (574 Bytes) Downloaded 109 times
It seems to be finding mine.
This is what I use
This is what I use
Code: Select all
#!/bin/bash
is_alive_ping()
{
ping -c 1 $1 > /dev/null
[ $? -eq 0 ] && echo IP: $i is up.
}
for i in 192.168.1.{1..255}
do
is_alive_ping $i & disown
done
exec sleep 1
trapster
Maine, USA
Asus eeepc 1005HA PU1X-BK
Frugal install: Slacko
Currently using full install: DebianDog
Maine, USA
Asus eeepc 1005HA PU1X-BK
Frugal install: Slacko
Currently using full install: DebianDog
Dear trapster,
Your routine works better than mine. Thanks. Here is a little update using your routine and my yad tail.
With kind regards,
vovchik
Your routine works better than mine. Thanks. Here is a little update using your routine and my yad tail.
With kind regards,
vovchik
- Attachments
-
- lanscan-gui.tar.gz
- (528 Bytes) Downloaded 115 times
I have used angry ip and nmap on Fatdog64. In the end I think I prefer nmap, which is a command-line tool and a GUI tool (zenmap).
[url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Fatdog64-810[/url]|[url=http://goo.gl/hqZtiB]+Packages[/url]|[url=http://goo.gl/6dbEzT]Kodi[/url]|[url=http://goo.gl/JQC4Vz]gtkmenuplus[/url]
Dear step,
Thanks. Nmap requires some libs (liblinear) and is a 17 MB download - whereas my script is well under 1000 bytes. The same with angry ip, which requires all of java in order to run. There must be something tiny that can deliver the local ips in a manner that can be shown using that yad_tail function in my script. I am not sure arp-scan is in all puppies. Does anybody know? Still thinking and testing....
With kind regards,
vovchik
Thanks. Nmap requires some libs (liblinear) and is a 17 MB download - whereas my script is well under 1000 bytes. The same with angry ip, which requires all of java in order to run. There must be something tiny that can deliver the local ips in a manner that can be shown using that yad_tail function in my script. I am not sure arp-scan is in all puppies. Does anybody know? Still thinking and testing....
With kind regards,
vovchik
Nice but it would be better if there were some details about the connections.vovchik wrote:Dear trapster,
Your routine works better than mine. Thanks. Here is a little update using your routine and my yad tail.
With kind regards,
vovchik
Also I had to change the IP range:
Code: Select all
for i in 10.1.1.{1..255}; do
nmap -sP 10.1.1.* is better but as you say, much bigger.
Cheers
Dear smokey01,
Thanks for testing. If you don't want to change the source, I think you can just supply 10.1.1 on the command line:
With kind regards,
vovchik
Thanks for testing. If you don't want to change the source, I think you can just supply 10.1.1 on the command line:
Code: Select all
./lanscan-gui 10,1,1
vovchik
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
In EasyOS and Quirky, I use arp-scan. This utility is also used by rcrsn51 in one of his apps, so is probably in all the pups.
Code: Select all
# arp-scan --localnet
[url]https://bkhome.org/news/[/url]
Post by don570: Arp Scan 1.9.5 (64 bit)
http://murga-linux.com/puppy/viewtopic.php?t=112838
http://murga-linux.com/puppy/viewtopic.php?t=112838
I think arp-scan is a dep of rcrsn51's port scanner and I have it in all slacko variants.
@smokey.. try this from cli
It is slower because there are 3 retries (-r, default is 2) and timeout 1000 milliseconds.(-t, default is 500). You can up the timeout and retries for increased reliability at a *sometimes* severe speed penalty.
Try arp-scan -h for more options.
*note that the arp-scan in slacko variants is older than don570's.
@smokey.. try this from cli
Code: Select all
# arp-scan -r 3 -g -q -l -t 1000
Try arp-scan -h for more options.
*note that the arp-scan in slacko variants is older than don570's.
Puppy Linux Blog - contact me for access