Not everything with an IP address is a computer - I found none of these suggestions returned all active IP addresses - in fact most returned very few. My home network has a combination of wired and wireless devices and two routers, mobile phones, TV, PVR, Apple AirPort and probably a few things I have forgotten. I used the following to scan all addresses on the 192.168.1.xxx subnet:

for /L %i in (0,1,255) do ping -n 1 -w 250 192.168.1.%i>>ipaddress.txt

The resulting file ipaddress.txt contains the ping results for all addresses and I looked for those with "Received = 1" - currently 16 addresses returned a result - I only have 4 computers in the house - and they were not all on.

Answer from Clifford on Stack Exchange
🌐
Paessler
blog.paessler.com › how-to-see-all-ip-addresses-on-network-a-guide-for-it-professionals
How to see all IP addresses on network: A guide for IT professionals
September 5, 2025 - The easiest way is to use the built-in Command Prompt: Press Win+R, type cmd, and press Enter to open Command Prompt · Type ipconfig and press Enter to see your own IP address, subnet mask, and default gateway (router) To see other devices ...
Discussions

ip - List ALL devices on local network? - Stack Overflow
Note that there are a number of reasons why a device may be on a network yet not "discoverable". For a Windows PC, Network discovery may be turned off. A firewall may be filtering out ICMP Echo requests or replying to ICMP Echo requests may be turned off. ... To generate a list with a Windows CMD ... More on stackoverflow.com
🌐 stackoverflow.com
List all IP devices in the network - cmd/powershell - Networking - Spiceworks Community
Hi spice community, Is there a tool or solution to list within cmd/powershell all ip devices in the local network? More on community.spiceworks.com
🌐 community.spiceworks.com
15
December 25, 2018
How to find network details for another device on my local network
ipconfig /all will give you your subnet mask for the entire network. On a home network, it will be the same across all devices. Use the one displayed on your computer in command prompt and you will be fine. More on reddit.com
🌐 r/techsupport
4
5
January 28, 2021
network programming - discover the devices connected to the computer via command line? - Stack Overflow
I would like to look at all the devices in my network . I would like to do it using the command line . Is it possible , Please give me directions the name of the tool that would help achieve the More on stackoverflow.com
🌐 stackoverflow.com
People also ask

How to display network devices in Windows Explorer?
The easiest way to view devices on the network is to use the Windows Explorer option: “Enable network discovery and file sharing”. Windows 10/11 lists devices in the local network.
🌐
libe.net
libe.net › en › find-ip-addresses
List all devices on network - cmd command IP scan
Which is a network device tool?

The term “network device” refers to the equipment that runs a network rather than the computers that store programs and files. These are systems such as switches, routers, and hardware firewalls. A new network administrator won’t necessarily know what devices are on a network or how they fit together, so a network device discovery tool can help identify all devices, log them in an inventory, and create a topology map.

🌐
comparitech.com
comparitech.com › home › net admin › how to find devices on your network
How to Find Devices On Your Network - Updated 2026 plus Tools!
What is a network discovery scan?

There are two types of network discovery tools. The simplest of these is an IP scanner, which intends to list all of the IP addresses that are in use on the network. A network device discovery tool will give detailed information on the device associated with each IP address that it finds is in use.

🌐
comparitech.com
comparitech.com › home › net admin › how to find devices on your network
How to Find Devices On Your Network - Updated 2026 plus Tools!
🌐
Websentra
websentra.com › how-to-scan-network-for-ip-addresses
How To Scan Network for IP Addresses Using CMD & Top Tools for 2026
December 30, 2025 - Operating Systems, like Windows and Linux, come with their own native simple networking set of tools. Commands such as “ipconfig”, “arp -a”, or “ping” allow simple scanning and troubleshooting.
🌐
Windows Report
windowsreport.com › windows 10 › network & internet › scan and manage valid ip addresses
How to Scan IP Addresses on Local Network & 5 Best Tools [2026]
August 27, 2025 - There is more than one way to scan the LAN for IP addresses and in this segment, we will walk you through some of the best means to do so. ... Type Cmd in the Start menu search bar.
Top answer
1 of 3
26

arp -a will show you only MAC addresses that are stored in local ARP cache and your computer was connected to. When I'm trying to see every device in my local network I have to scan it. For example if you have 192.168.1.0/24 network you can do:

$ for i in `seq 1 254`; do
ping -c 1 -q 192.168.1.$i &
done

You will try to ping every computer in your network. Of course not every computer will answer for ping. This is why you can't rely on ping. Now you need to check ARP cache.

$ arp -a | grep 192.168.1. | grep ether

This command will show you ARP cache filtered only with computers that are in this network and that answered on ARP requests (in 99% cases it will be full list of devices in your network - just remember that ARP entry is not removed immediately when the device disconnects).

2 of 3
1

There are several ways to generate list of devices on a network however it depends on what resources you have available to use.

  • ping the possible list of devices
  • access the list of devices from your router
  • use a third party wire sniffing tool

Note that there are a number of reasons why a device may be on a network yet not "discoverable". For a Windows PC, Network discovery may be turned off. A firewall may be filtering out ICMP Echo requests or replying to ICMP Echo requests may be turned off.

Ping the network for devices - Windows OS

To generate a list with a Windows CMD .bat file to ping devices on the network, do the following.

Create a .bat file with a loop that uses the ping command to send a ping to each of the possible usable addresses on your network. I use the -a and -n 1 options on the ping command to send a single ping, -n 1, with a request to give me the hostname. After pinging the network you can then use the arp command to get a concise list using arp -a >con which will redirect the output to the console even when the .bat file is redirected to a file.

The following commands in a Windows .bat file seems to do the trick.

for /L %%i in (1,1,254) do (
ping -a -n 1 192.168.0.%%i 
)

arp -a >con

Next run the .bat file sending the output to a text file:

listdev.bat > listdev.txt

This will generate a text file with the results of the ping commands. It will look something like the following:

C:\Users\rcham>(ping -a -n 1 192.168.0.3  ) 

Pinging DESKTOP-GFSP7AC.xxxxxxxx.net [192.168.0.3] with 32 bytes of data:
Request timed out.

Ping statistics for 192.168.0.3:
    Packets: Sent = 1, Received = 0, Lost = 1 (100% loss),

C:\Users\rcham>(ping -a -n 1 192.168.0.4  ) 

Pinging rick-MS-7B98.xxxxxxxx.net [192.168.0.4] with 32 bytes of data:
Reply from 192.168.0.4: bytes=32 time=5ms TTL=64

Ping statistics for 192.168.0.4:
    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 5ms, Maximum = 5ms, Average = 5ms

C:\Users\rcham>(ping -a -n 1 192.168.0.5  ) 

Pinging 192.168.0.5 with 32 bytes of data:
Reply from 192.168.0.148: Destination host unreachable.

Ping statistics for 192.168.0.5:
    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),

C:\Users\rcham>(ping -a -n 1 192.168.0.6  ) 

Pinging 192.168.0.6 with 32 bytes of data:
Reply from 192.168.0.148: Destination host unreachable.

Ping statistics for 192.168.0.6:
    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),

C:\Users\rcham>(ping -a -n 1 192.168.0.7  ) 

Pinging 192.168.0.7 with 32 bytes of data:
Reply from 192.168.0.148: Destination host unreachable.

Ping statistics for 192.168.0.7:
    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),

C:\Users\rcham>(ping -a -n 1 192.168.0.8  ) 

Pinging SurfacePro-2.xxxxxxxx.net [192.168.0.8] with 32 bytes of data:
Reply from 192.168.0.148: Destination host unreachable.

Ping statistics for 192.168.0.8:
    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),

C:\Users\rcham>(ping -a -n 1 192.168.0.9  ) 

Pinging starfive.xxxxxxxx.net [192.168.0.9] with 32 bytes of data:
Reply from 192.168.0.148: Destination host unreachable.

Ping statistics for 192.168.0.9:
    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),

Notice in the list above that there are differences in responses to the ping command.

  • response received
  • request timed out
  • reply of Destination host unreachable.

The first means that there was an operational device connected to the network with that IP address and the device was configured to reply to the ICMP Echo request of the ping command.

The second means that there may be a device connected to the network with that IP address however the device may be configured to ignore ICMP Echo requests or it is powered off and can't reply. There may be other possible causes but these two are the most common in a small network.

The third means the router didn't have a way to send the ICMP Echo request to the designated IP address so the request wasn't sent.

For the difference between the two last responses with more details see the post ping response "Request timed out." vs "Destination Host unreachable"

🌐
Quora
quora.com › How-can-I-see-all-devices-on-my-network-using-CMD
How to see all devices on my network using CMD - Quora
Answer (1 of 2): Hope this will help you. Use elevated command prompt and fire following commands Net View - This will list all network devices Arp -a - This will list all devices with its IP address
Find elsewhere
🌐
Comparitech
comparitech.com › home › net admin › how to find devices on your network
How to Find Devices On Your Network - Updated 2026 plus Tools!
April 22, 2026 - Runs on Windows Server. Spiceworks IP Scanner A free, online scanner for networks that can display device details. ... While you can use a network monitoring tool to discover devices on a home network, if you’re only dealing with a handful of devices then you can effectively do this through the command prompt. Type CMD in the search box and click Run as Administrator from the menu
🌐
Digital Citizen
digitalcitizen.life › command-prompt-advanced-networking-commands
Command Prompt (CMD): 10 network-related commands you should know
October 11, 2025 - As you can see in the screenshot below, when you run this command, Windows displays the list of active network devices, whether they’re connected or disconnected, and their IP addresses. You also get details such as their default gateway IP addresses, subnet masks, and the state of each network adapter. Getting CMD NIC info (information about the Network Interface Card) by running ipconfig If you add the /all switch to the ipconfig command, you can get to a whole new level of detail: DNS information, the MAC (Media Access Control) (in the Physical Address field), and other information about each network component.
🌐
SysAdminSage
sysadminsage.com › home › blog › how to use command prompt to see all devices on your network
How to Use Command Prompt to See All Devices on Your Network - SysAdminSage
3 weeks ago - Run the Basic Command: In the black window that appears, simply type net view and press Enter. View the Results: Windows will now scan your current workgroup or domain and display a list of all visible computers. But wait—what if you want to see what a specific computer is sharing?
🌐
Deye PV Balkonkraftwerk
libe.net › en › find-ip-addresses
List all devices on network - cmd command IP scan
April 29, 2022 - ... Be careful, because start /min ... I had no problem so far. The easiest way to view devices on the network is to use the Windows Explorer option: “Enable network discovery and file sharing”. Windows 10/11 lists devices in the local network....
🌐
ChillyFacts
chillyfacts.com › see-devices-pc-connected-network
How to see all devices / PC connected on your network - ChillyFacts
May 6, 2018 - I have shown 2 ways to check the devices, 1. Using CMD – Command Prompt The command will NET VIEW show all devices connected in network. net view . Now to see all the active IP address in ...
🌐
SolarWinds
solarwinds.com › resources › it-glossary › network-device-identification
How to Identify Devices on a Network - IT Glossary | SolarWinds
A simple way to identify an "unknown device on a network" is through the command-line interface (CLI) of your computer system. Operating systems such as Windows, Linux, and macOS have their own set of networking commands such as "ipconfig" and “ping” for basic scanning and troubleshooting.
🌐
Comparitech
comparitech.com › home › net admin › how to scan for ip addresses
How to Scan Local Networks for IP Addresses (Free + Paid Tools)
November 11, 2024 - MyLanViewer – A free IP address scanner tool for Windows. It will detect rogue devices and fake DHCP servers. ... Here are some simple command-line queries to find your entire network device’s IP addresses and information on how to track all IP address assignments.
🌐
Paessler
blog.paessler.com › find-devices-on-network-complete-guide-for-it-infrastructure-management
Find devices on network - Complete guide for IT infrastructure management
September 1, 2025 - The quick-and-dirty approach depends on what computer you're using. On Windows, just hit Win+R, type 'cmd', and enter 'arp -a' to see everything that's recently talked to your machine. Mac and Linux folks can open Terminal and do the same thing.
🌐
Spiceworks
community.spiceworks.com › hardware & infrastructure › networking
List all IP devices in the network - cmd/powershell - Networking - Spiceworks Community
December 25, 2018 - Hi spice community, Is there a tool or solution to list within cmd/powershell all ip devices in the local network?
🌐
Reddit
reddit.com › r/techsupport › how to find network details for another device on my local network
r/techsupport on Reddit: How to find network details for another device on my local network
January 28, 2021 -

Forewarning: I am not the greatest when it comes to networking

I know enough that if I wanted to find my computer's IP address and subnet I can go into Command Prompt and use ipconfig /all

I am currently looking to get the subnet mask of another device on my network who's local IP address I know.

I am looking to make a WD My Book Live a static IP, but need to input a subnet mask, but I'm unsure of what it's current one is. I don't know enough about networking to really understand what it is either.

Sorry if I did not explain this properly.

🌐
Seven Forums
sevenforums.com › windows 7 help and support › network & sharing
The “cmd” command to show the all the connected machines on network | Seven Forums
January 20, 2013 - Type 'ipconfig/all' to show a list of all connected devices on the network. Then use the default gateway & type it in the address bar of the browser to access your Router...that page will show you all comps/devices using your internet connection. HTH · Windows 7 Professional x64Intel i5 quad ...
🌐
Deye PV Balkonkraftwerk
libe.net › en › cmd-network
cmd commands: Display IP and network connections
April 29, 2022 - ➨ Windows: Ping with Port | cmd vs. PowerShell | ➦ Network | cmd Portscan - Test devices on the network for their services.
🌐
Stack Overflow
stackoverflow.com › questions › 6541640 › discover-the-devices-connected-to-the-computer-via-command-line
network programming - discover the devices connected to the computer via command line? - Stack Overflow
You need to elaborate on what you mean by 'look' and 'network'. A network could be anything. Do you mean devices on the same subnet as yours? Probably on the same Ethernet cable? There are scanners that can scan your subnet and spew out a list of IP addresses that respond to an ICMP echo (Ping).