Use the arp -a command in Command Prompt to list IP addresses on your local network. This shows devices currently connected and recognized by your computer through ARP cache, not all devices that could be on the network. Many people mistakenly expect arp -a to show every device, but it only lists those your system has recently communicated with.
Run arp -a to See Active Devices
Open Command Prompt as a regular user by pressing Windows + R, typing cmd, and pressing Enter. Then type arp -a and press Enter. The output displays a list of IP addresses, their corresponding physical (MAC) addresses, and the interface used. Each line represents a device your computer has interacted with at the network level within the cache timeout period.
The format is simple: one IP address per line, followed by the MAC address and the type (usually dynamic). For example:
Interface: 192.168.1.20 ---> 0x2 Internet Address Physical Address Type 192.168.1.1 3c-97-0e-1a-2b-3c dynamic 192.168.1.15 a0-b1-c2-d3-e4-f5 dynamic 192.168.1.25 00-11-22-33-44-55 dynamic
This means your system has recently sent or received data from these three devices. The IP 192.168.1.1 is typically your router, and others may be phones, laptops, or smart devices.
Refresh Your Network Activity First
If arp -a returns few or no devices, your cache may be empty. To populate it, trigger network communication. Open a web browser and visit a few internal services—like your router’s admin page at http://192.168.1.1—or ping common local addresses manually. For example, run ping 192.168.1.1, ping 192.168.1.10, and ping 192.168.1.20 to solicit responses from devices that may be idle.
After pinging, wait 10 seconds and run arp -a again. More entries should now appear. This step is necessary because ARP entries expire after a few minutes of inactivity. The exact timeout varies by operating system but is typically between 2 and 15 minutes.
Use ping to Probe a Range of IPs
To find more devices, actively ping entire subnets. While Windows doesn’t have a built-in bulk ping tool, you can script a loop in Command Prompt. For a network using the common 192.168.1.x range, use a for loop to ping addresses 1 through 254:
for /L %i in (1,1,254) do ping -n 1 -w 100 192.168.1.%i
This sends one ping packet with a 100ms timeout to each address. Fast timeout keeps the scan under a minute. After the loop finishes, run arp -a again. Now, any responsive devices will appear in the list.
Note that some devices block ICMP (ping) packets. These won’t respond, so they won’t show up even if powered on. This includes certain smart TVs, printers, or firewalled systems. The absence of an IP in arp -a after a ping sweep doesn’t guarantee the device is offline.
Check Your Router’s DHCP Client List
For a more complete view, access your router’s admin interface. Most consumer routers assign IP addresses via DHCP and maintain a table of active leases. Open a browser and enter your gateway IP—usually 192.168.1.1 or 192.168.0.1. Log in with your admin credentials (often found on a sticker on the router).
Navigate to Connected Devices, DHCP Clients, or Attached Devices. This list shows all devices the router has assigned an IP to, regardless of recent activity. It often includes hostnames, which helps identify devices. This list is more reliable than arp -a for seeing all active clients on the network.
Use PowerShell for More Control
For advanced users, PowerShell offers better scripting and filtering. Run this command to scan a subnet:
1..254 | ForEach-Object { Start-Job -ScriptBlock { param($ip) Test-Connection $ip -Count 1 -ErrorAction SilentlyContinue } -ArgumentList "192.168.1.$_" }
Wait-Job *
Get-Job | Receive-Job
Get-Job | Remove-Job
This starts background ping jobs for each IP, waits for them to finish, retrieves results, then cleans up. Afterward, use arp -a to see resolved addresses. PowerShell gives more detailed output and supports filtering by response time or success.
Alternatively, use the Get-NetNeighbor cmdlet in PowerShell, which is the modern replacement for arp -a. Run:
Get-NetNeighbor -AddressFamily IPv4 | Where-Object {$_.State -eq "Reachable"}
This lists IPv4 devices currently reachable on the network, with interface index, IP, MAC address, and state. It’s more reliable than arp -a because it uses the same underlying table but with clearer output and filtering options.
Understand Network Scope and Subnets
The IP addresses you can see depend on your subnet mask. Most home networks use 255.255.255.0, meaning only devices in the same 192.168.1.0/24 range are directly reachable. Devices on other subnets, such as 192.168.2.x, won’t appear unless routed.
To check your subnet, run ipconfig in Command Prompt. Look for Subnet Mask next to your IPv4 address. If it’s 255.255.255.0, your network spans 254 usable IPs (e.g., 192.168.1.1 to 192.168.1.254). A mask of 255.255.0.0 means a much larger range (192.168.0.1 to 192.168.255.254), but scanning it manually isn’t practical without automation.
A rule of thumb: if your IP starts with 192.168.1.x, assume your network is 192.168.1.0/24. If it’s 10.0.0.x or 172.16.x.x, check the subnet mask to determine the range. Large networks may segment devices, so scanning one subnet won’t reveal others.
Worked Example: Scan a Home Network
You’re on a laptop with IP 192.168.1.20. You want to see all devices. First, run arp -a. It shows only your router at 192.168.1.1. To find more, ping common addresses:
ping 192.168.1.1 ping 192.168.1.10 ping 192.168.1.15
You notice responses from 192.168.1.1 and 192.168.1.15. Run arp -a again. Now it lists both. To go further, run the loop:
for /L %i in (1,1,254) do ping -n 1 -w 100 192.168.1.%i
After 30 seconds, run arp -a again. You now see five devices: the router, two phones, a printer at 192.168.1.11, and a smart TV at 192.168.1.22. Cross-check this with your router’s client list to confirm all are accounted for.
Limitations of IP Scanning via CMD
Command Prompt tools are limited to ICMP and ARP. They can’t detect devices that don’t respond to ping or are on VLANs. Some systems disable echo replies for security. Others use IPv6, which arp -a doesn’t cover (use netsh interface ipv6 show neighbors instead).
Also, arp -a only shows Layer 2 neighbors on the same subnet. If your computer is on a different VLAN or subnet than other devices, they won’t appear. For comprehensive discovery, use dedicated tools like Advanced IP Scanner or nmap, but those go beyond basic CMD use.
Always scan only networks you own or have permission to test. Scanning without authorization may violate policies or laws.