Quote Originally Posted by user0182
hi all,

i have searched the web for an answer to this question, but have been unable to find one. so i thought that you guys might be able to help.

does anyone know how i can list all of the computers that are connected to my LAN from the Command Line? i would like to find out how to do this through both the Linux CLI and the Windows DOS Prompt, and list the computers by IP and/or name. if anyone can help i would be extremely grateful, thanks in advance.


regards,

- user0182

Actually yes this is possible and there is a built in utility in Windows to do. Its called the Net Command (output below)

NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND | SESSION |
SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]


Your looking specifically for Net View, which will give you the names of all computers connected to your LAN in a format "\\ComputerName".

Hope thats what your looking for.. good luck