Page 1 of 1

How to find all PCs in the LAN? (Solved)

Posted: Fri 01 Mar 2013, 20:29
by der-schutzhund
hi,

i wand find all ips of all PCs in the LAN (windows and Puppy-PCs).
how can i do that?
lameSMBxplorer will not work because gtkdialog.
is there a other way?

Edit:
-------------------------------------------------------
The script "check_ip.tar.gz" from voychik works perfectly!
Thank you very much!



Greetings

Wolfgang

Re: find all pcs in the lan

Posted: Fri 01 Mar 2013, 20:58
by rcrsn51
der-schutzhund wrote:i wand find all ips of all PCs in the LAN (windows and Puppy-PCs).how can i do that?
You can only "see" machines that are running some kind of service that advertises its presence on the network. That might be a CUPS print server or a Windows/Samba share.

Run PeasyPort and scan your network for ports 631 or 139.

Posted: Fri 01 Mar 2013, 22:02
by Iguleder

Code: Select all

arp -a
Every computer in the LAN sends ARP packets which tell other computers what its IP address is.

rcrsn51, you're talking about the application layer, while the arp protocol is in the data link layer of the OSI model.

Posted: Fri 01 Mar 2013, 23:26
by p310don
Depending on who you are on the LAN, ie if its your own LAN at home, or if it's at work, you might be able to log into the router.

I often log onto my router at home at 192.168.1.1 at click on "attached devices" which lists all devices on the LAN.

Posted: Fri 01 Mar 2013, 23:28
by Geoffrey

Posted: Sat 02 Mar 2013, 15:35
by rcrsn51
Agreed. You can detect the presence of other machines on your LAN several ways. But in the context of der-schutzhund's discussion here, I think that he is looking for something more specific.

Posted: Sat 02 Mar 2013, 17:42
by vovchik
Dear guys,

Thanks for reminding me of that old script. I just revised it and have used arp-scan. The time taken for scanning 255 addresses is now about 1 or 2 seconds :) I have included the arp-scan binary (stripped and UPX'd) in this archive (compiled on Lucid). Because the source is relatively large (some 450k), I am just giving the link:

http://www.nta-monitor.com/tools-resour ... s/arp-scan.

Have fun,
vovchik

PS. I have noticed a few "timeout" issues with arp-scan and wireless, so you might what to play with the "-t" parameter - increasing it, say, from the default of 100 ms to 300 ms.

Posted: Sat 02 Mar 2013, 20:21
by pemasu
chk_ip script and wireless. You can add switch to the arp-scan row:
--interface=wlan0
arp-scan --help:
--interface=<s> or -I <s> Use network interface <s>.
....and it works with wireless. Found my smartphone ip address. Nice.
Timeout increase was also needed.

Posted: Sun 03 Mar 2013, 01:36
by Flash
I tried arp in Slacko:

Code: Select all

# arp -a
bash: arp: command not found
#

Posted: Sun 03 Mar 2013, 08:23
by vovchik
Dear Flash,

Because arp is missing from my distribution (Lucid), I compiled arp-scan (above attachment). Arp-scan does not have any non-Puppy dependencies and is lightning fast. Try it out, taking pemasu's and my observations about -t and --interface into account. It works nicely.

With kind regards,
vovchik

Posted: Sun 03 Mar 2013, 12:43
by Flash
Thanks! :D

Posted: Sun 03 Mar 2013, 12:46
by der-schutzhund
Hi voychik,

The script works perfectly!
Thank you very much!

Greetings

Wolfgang
vovchik wrote:Dear guys,

Thanks for reminding me of that old script. I just revised it and have used arp-scan. The time taken for scanning 255 addresses is now about 1 or 2 seconds :) I have included the arp-scan binary (stripped and UPX'd) in this archive (compiled on Lucid). Because the source is relatively large (some 450k), I am just giving the link:

http://www.nta-monitor.com/tools-resour ... s/arp-scan.

Have fun,
vovchik

PS. I have noticed a few "timeout" issues with arp-scan and wireless, so you might what to play with the "-t" parameter - increasing it, say, from the default of 100 ms to 300 ms.

chk_ip .pet

Posted: Sun 03 Mar 2013, 16:35
by jrb
vovchik wrote:Dear guys,

Thanks for reminding me of that old script. I just revised it and have used arp-scan. The time taken for scanning 255 addresses is now about 1 or 2 seconds :) I have included the arp-scan binary (stripped and UPX'd) in this archive (compiled on Lucid). Because the source is relatively large (some 450k), I am just giving the link:

http://www.nta-monitor.com/tools-resour ... s/arp-scan.

Have fun,
vovchik

PS. I have noticed a few "timeout" issues with arp-scan and wireless, so you might what to play with the "-t" parameter - increasing it, say, from the default of 100 ms to 300 ms.
Beautiful work vovchik!

I have taken the liberty of building a .pet with your package. Menu entry is on the Network menu. Tested (briefly) in Wary, Racy, Slacko and Precise. Worked great in all of them. :D

Thanks for this, J

Posted: Sun 03 Mar 2013, 17:44
by vovchik
Dear jrb,

Thanks for the packaging job. Works nicely. Seeing this thread, I realized that the script might be useful since I now also have a netbook, a smartphone a tablet and two PCs, in addition to two routers and an inet-connected DVB-S receiver. Back in the old days, things were simpler, and I used to use static IPs. And now there are things such as smart TVs, internet radio players and watches.

In view of the above, It might be a good idea to include devices names, too, just to avoid confusion. I'll give that a little think and see whether that can't be done without introducing unacceptable delays in the scan.

With kind regards,
vovcghik

Posted: Mon 04 Mar 2013, 01:40
by Flash
The .pet works great in Slacko. My computer is connected to the internet through a Motorola SURFBOARD cable modem "gateway". I suppose a gateway is the same as a router. When I run 'check network_ip', it finds one IP address. Is this the IP address of the gateway, the computer, or what?

Posted: Mon 04 Mar 2013, 01:55
by R-S-H
Here is DE/EN localized version (GUI & Menu entry).