A wi-fi router has been setup with a number of windows machines connecting to it. How do I use windows command line to list all the computers (either by hostname or ipaddress) in the wi-fi network. OSs on the network are XP, Vista and 7.
2 Answers
I have used following procedure:
- Open Run (⊞ Win+R)
- Type
cmd
and click OK. - Ping the server if you know or your gateway. Even if there is requested timed out.
- Type the command
arp -a
. - It will usually list down all the IP's and Computers with their Mac Addresses.
If you want to use a GUI tool. I recommend IPScan. Although it is a light application (433KB), it is freeware that's always worked for me.
You can also use another GUI Tool, Advance IP Scanner.
-
I don't get it.
Pt. #3
says ping server (in my case it's the wi-fi router ip). Did that.Pt. #4
says type "arp -a". Did that, but I get an error that arp is not a recognized command.– ThomasSep 28, 2011 at 17:07 -
-
yup .. no quotes.... to confirm again .... I simply type "arp -a" (without quotes) .. into windows command line?– ThomasSep 28, 2011 at 17:10
-
Well works fine for me it actually the Address Routing Protocol command, why not use IPscan GUI ?– aibk01Sep 28, 2011 at 17:18
-
2ran arp -a in PowerShell. It worked. Ran windows command line as administrator and then arp -a. It worked. I was testing on a Windows Vista machine with UAC turned on; so running cmd as administrator was needed. Thanks for the great command.– ThomasSep 28, 2011 at 17:23
net view
will probably show most of them.
-
1... does
net view
require any folders to be shared on the other PCs in the network? ... I tried it and it lists only my PC as\\<PC NAME>
– ThomasSep 28, 2011 at 17:08 -
But it will only list the names, not the IP and Mac addresses but it works. Good answer– aibk01Sep 28, 2011 at 17:09
-
Is there any alternative to net view command, I got below error -- C:\Users\vipin>net view System error 53 has occurred. The network path was not found. Jan 12, 2017 at 13:44