View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-09-2005, 04:42 PM   #1
Registered: Nov 2005
Posts: 144

Rep: Reputation: 18
list computers in LAN

How can I list the names of all computers currently connected to a LAN (Windows and Unix machines)?
Old 12-09-2005, 05:35 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,047
Blog Entries: 11

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

Old 01-08-2006, 12:10 PM   #3
Senior Member
Registered: Apr 2001
Location: Cornwall, England.
Distribution: Debian + Ubuntu
Posts: 4,345

Rep: Reputation: 57
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LAN between two FC4 computers max2004 Fedora 4 08-08-2005 11:24 AM
KDE Lan Browser doesn't display available LAN computers dance2die Linux - Newbie 2 01-16-2005 09:14 PM
software to list local network computers? marlor Linux - Software 2 09-19-2004 05:18 PM
How to resolve LAN computers? yalag Linux - Networking 1 03-21-2004 06:54 AM
I cannot see my own server from computers on my LAN proroer Linux - Networking 2 09-08-2003 12:33 AM

All times are GMT -5. The time now is 01:18 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration