LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   list computers in LAN (http://www.linuxquestions.org/questions/linux-newbie-8/list-computers-in-lan-391011/)

Lotharster 12-09-2005 03:42 PM

list computers in LAN
 
How can I list the names of all computers currently connected to a LAN (Windows and Unix machines)?

Tinkster 12-09-2005 04:35 PM

Depends on how your LAN is set-up? Or, in other words: there is
no generic way of doing this.


Cheers,
Tink

Thymox 01-08-2006 11:10 AM

The only way I can think of would involve sequentially pinging all addresses (because using a broadcast ping doesn't *always* seem to work), and for the addresses which register positively, use another probe application to determine the hostname of that address. It shouldn't be a particularly complicated BASH script to do this.


All times are GMT -5. The time now is 12:05 AM.