Get all IP addresses in one workgroup

Posted on 2004-11-19
Last Modified: 2012-08-14

ok i have a workgroup of people attached to a switch sharing files and internet, without disrupting everyone in the office can I access one pc in dos and use a command to get all of the IP addresses for each pc? I would like to get the computer name too...

What is the command?
Question by:chwankok
    LVL 3

    Accepted Solution

    LVL 10

    Expert Comment

    How are the IP addresses assigned?  If DHCP is assigning the addresses, you could look in the DHCP server for the bindings (leases).
    LVL 87

    Expert Comment

    Lannetscan free trial  period.
    LVL 1

    Expert Comment

    Go to a dos prompt
    Ping broadcast address eg. for
    arp -a this will give ip addresses to mac addresses of machines connected.

    Be aware that some devices will not respond to broadcast, but PC's are usually ok.

    You could also go into network neighbourhood and from a dos prompt ping each of the machines. This will give name and it will respond with IP address.

    Of course there are probably a thousand ways to do this but this does not require any external software.
    LVL 5

    Expert Comment

    pinging a broadcast address is not possible and is wrong.

    use one ot the iP scanners suggested above (they do it in a loop - 1 by 1 and not all together).

    Or use this one, its free and doesn't require any installation.

    In th IP scanner configure the range of IPs you would like to scan and it will do it. For a network of Class C (255 hosts) it takes around 15 minutes. This program gives you IP, Hostname, DNS name, etc.

    PS: as also stated above - some PCs won't answer ping (but in a LAN environment those would only be XP machines with Firewall running).
    LVL 1

    Expert Comment

    I assure you that if you
    arp -a
    then ping broadcast (you will not get a reply)
    arp -a

    You will see all the PC's running windows on the network. :-)
    LVL 5

    Expert Comment

    type in the command prompt.

    net view

    This will list all the computer names.

    Then just ping each one and note down their ip

    ping <computername>

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Configuring network clients can be a chore, especially if there are a large number of them or a lot of itinerant users.  DHCP dynamically manages this process, much to the relief of users and administrators alike!
    Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now