[Leaplist] IPs no network command needed

John Simpson jms1 at jms1.net
Thu Nov 8 21:01:20 GMT 2007


On 2007-11-06, at 0901, andrei raevsky wrote:
>
> Is there a command which, from the terminal, makes it possible for  
> me to
> ascertain how many computers are connected to my home wifi and what  
> IPs they
> got from my DHCP-giving router?

the best thing would be to ask the router.

if it's an appliance (i.e. linksys, netgear, d-link, etc. running the  
built-in firmware) there will probably be a page in their web  
interface to give you this information.

if it's a linux machine, the dhcpd process on the router should keep a  
list of the current leases, check /var/lib/dhcp/dhcpd.leases ...  
either that, or run "arp -an" and it will show you the IP and MAC  
address of ever device to/from which it has exchanged packets within  
the last few minutes, that should give you a good place to start.

you could also ping the broadcast address, but some devices don't  
answer those.

----------------------------------------------------------------
| John M. Simpson    ---   KG4ZOW   ---    Programmer At Large |
| http://www.jms1.net/                         <jms1 at jms1.net> |
----------------------------------------------------------------
| http://video.google.com/videoplay?docid=-1656880303867390173 |
----------------------------------------------------------------





More information about the Leaplist mailing list