List All PC on a Network

SillyMonkeyPro
NewLounger
Posts: 20
Joined: 04 Nov 2014, 14:12
Location: South Africa

List All PC on a Network

Post by SillyMonkeyPro »

Hi

Can anyone tell me how I can get a name as well as the IP of all computers on a network.


What I really want to do is.

I want to get the name and IP address of computers on a network to be saved to a text.file


Is this possible ?

Can it be done ?


I hope you can help :hairout:



Thank you :scratch:

User avatar
HansV
Administrator
Posts: 78236
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: List All PC on a Network

Post by HansV »

Open a command prompt window (Start button > All Programs > Accessories > Command Prompt).
Type the command

net view

and press Enter to see a list of the names of connected computers. To save the result to a text file, use

net view > c:\lists\network.txt

specifiying the path and name of the text file that you want to create.

This doesn't list the IP addresses; I hope that someone else can help you with that.
Best wishes,
Hans

User avatar
John Gray
PlatinumLounger
Posts: 5401
Joined: 24 Jan 2010, 08:33
Location: A cathedral city in England

Re: List All PC on a Network

Post by John Gray »

If you use WakeMeOnLAN by Nir Sofer (download is near the very bottom of the webpage) you can get all sorts of network-y information for all the devices on your LAN (including your router, etc):
IP address, computer name, MAC address...

A very minor amount of configuration may be needed so that it just checks the IP addresses in your subnet, for example 192.168.2.1 to 192.168.2.254 for the "2" subnet.

Of course all the devices you want to list must be powered on and visible on the LAN at the time you run the program!
John Gray

Venison is quiet deer, and quite dear.

SillyMonkeyPro
NewLounger
Posts: 20
Joined: 04 Nov 2014, 14:12
Location: South Africa

Re: List All PC on a Network

Post by SillyMonkeyPro »

Hi


Thank you both I will look into both replies I thank you all very much again :thankyou: :thankyou: :thankyou: :thankyou: :thankyou:

SillyMonkeyPro
NewLounger
Posts: 20
Joined: 04 Nov 2014, 14:12
Location: South Africa

Re: List All PC on a Network

Post by SillyMonkeyPro »

Hi

Would it make a difference if I have Wi-Fi

I think is would be the same procedure and way to get the IP.

I could be wrong

SillyMonkeyPro
NewLounger
Posts: 20
Joined: 04 Nov 2014, 14:12
Location: South Africa

Re: List All PC on a Network

Post by SillyMonkeyPro »

Hi :clapping: :clapping: :clapping: :clapping: :clapping: :clapping:

:fanfare: :fanfare: :fanfare: :fanfare:

Works just as I wanted it to


Many Many Thanks
SillyMonkeyPro :thankyou: :thankyou: :thankyou:

User avatar
StuartR
Administrator
Posts: 12577
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: List All PC on a Network

Post by StuartR »

You will never get a complete and accurate list, because the concept of a "name" is ambiguous.

There can be multiple names for each computer, and which one you needs depends on what you are planning to use it for.
StuartR


SillyMonkeyPro
NewLounger
Posts: 20
Joined: 04 Nov 2014, 14:12
Location: South Africa

Re: List All PC on a Network

Post by SillyMonkeyPro »

Hi

That makes sense.

but the IP Addresses should be unique?
:hiding:

User avatar
HansV
Administrator
Posts: 78236
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: List All PC on a Network

Post by HansV »

The IP addresses will be unique (no two computers/devices will have the same IP address), but not necessarily static - a computer/device may have a different IP address tomorrow than it had today. This depends on the way the network is configured.
Best wishes,
Hans

User avatar
StuartR
Administrator
Posts: 12577
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: List All PC on a Network

Post by StuartR »

Some computers may have multiple IP addresses, even if they only have one network card, but this is not common.

Also each IP address can have multiple DNS names, and each computer can have a NETBIOS name which is different to the DNS name(s).
StuartR


SillyMonkeyPro
NewLounger
Posts: 20
Joined: 04 Nov 2014, 14:12
Location: South Africa

Re: List All PC on a Network

Post by SillyMonkeyPro »

Hi

I see, So is there a means to know for sure which is a certain computer at any given time ( as long as they are on the network)?

User avatar
Rebel
4StarLounger
Posts: 559
Joined: 24 Jan 2010, 16:02
Location: Recently moved to Bracebridge - in the heart of Muskoka.

Re: List All PC on a Network

Post by Rebel »

In this post, Rudi suggested "Who's on my WiFi". I've been using it (the free version) since that time and it is a great tool for Wi-Fi networks.
John :canada:
A Child's Mind, Once Stretched by Imagination...
Never Regains Its Original Dimensions