34

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 2

52

I have used following procedure:

  1. Open Run (⊞ Win+R)
  2. Type cmd and click OK.
  3. Ping the server if you know or your gateway. Even if there is requested timed out.
  4. Type the command arp -a .
  5. 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.

9
  • 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.
    – Thomas
    Sep 28, 2011 at 17:07
  • Did you type without the quotes? Do it without the quotes
    – aibk01
    Sep 28, 2011 at 17:08
  • yup .. no quotes.... to confirm again .... I simply type "arp -a" (without quotes) .. into windows command line?
    – Thomas
    Sep 28, 2011 at 17:10
  • Well works fine for me it actually the Address Routing Protocol command, why not use IPscan GUI ?
    – aibk01
    Sep 28, 2011 at 17:18
  • 2
    ran 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.
    – Thomas
    Sep 28, 2011 at 17:23
12

net view will probably show most of them.

3
  • 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>
    – Thomas
    Sep 28, 2011 at 17:08
  • But it will only list the names, not the IP and Mac addresses but it works. Good answer
    – aibk01
    Sep 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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .