On Windows, Linux, or macOS, the command arp -a displays all currently connected devices (via IP and MAC address) on your local network. For a more detailed list, use netstat -rn on Linux/macOS or Get-NetNeighbor in PowerShell. Below is a platform-specific, step-by-step guide to reveal every active IP address—including hidden ones—without third-party tools.

What You'll Need

  • Admin or root access (on Linux/macOS, you’ll need to run commands with sudo)
  • A terminal (Windows: cmd or PowerShell; macOS/Linux: built-in Terminal)
  • Your network’s subnet (e.g., 192.168.1.x or 10.0.0.x; find it in ipconfig on Windows or ifconfig on macOS/Linux)

Step-by-Step

  1. Open a terminal
    1. Windows: Press Win + R, type cmd or powershell, then hit Enter.
    2. macOS/Linux: Launch Terminal (search for it in Spotlight or the app drawer).
  2. List all active connections (Windows)

    In cmd, run:

    arp -a

    This shows a table of IP addresses, MAC addresses, and "dynamic" entries (devices currently communicating with your router). Note:

    • Only devices that recently sent/received packets appear here. Idle devices (e.g., a phone charging) may not show.
    • For a refresh, unplug your router for 10 seconds, then reconnect and run arp -a again.
  3. List all active connections (PowerShell, Windows)

    For a more detailed list (including unused IPs), run:

    Get-NetNeighbor | Select-Object IpAddress, LinkLayerAddress, State

    This filters by State ("Reachable" = active; "Stale" = recently active but idle).

  4. List all routes and active interfaces (Linux/macOS)

    Run these commands in sequence to map your network:

    ip route show
    ifconfig
    arp -an

    The ifconfig output shows your subnet (e.g., inet 192.168.1.100) and broadcast address. The arp -an command lists all resolved IPs (use sudo if empty).

  5. Scan for hidden devices (Linux/macOS)

    To find all devices in your subnet (even if inactive), use nmap (install via sudo apt install nmap on Debian/Ubuntu):

    sudo nmap -sn 192.168.1.0/24

    Replace 192.168.1.0/24 with your subnet (e.g., 10.0.0.0/24). This scans your entire network and lists all live hosts.

  6. Cross-reference with your router’s DHCP list (all platforms)

    Log into your router’s admin panel (usually 192.168.1.1 or 192.168.0.1) and check the DHCP client list. This shows all devices ever assigned an IP (including offline ones).

    Note: Router menus vary by brand (e.g., Netgear vs. TP-Link). Look for "Connected Devices," "DHCP Clients," or "LAN Clients."

Common Mistakes

  • Assuming arp -a shows all devices

    Only devices that have recently communicated with your machine appear. To see truly idle devices, use nmap or your router’s DHCP list.

  • Skipping sudo on Linux/macOS

    Without admin privileges, arp -an may return no results. Prefix with sudo to force a full scan.

  • Ignoring the subnet

    If you run nmap with the wrong subnet (e.g., 192.168.2.0/24 when your network is 192.168.1.0/24), it will scan the wrong range and miss devices.

  • Not refreshing the ARP cache

    If a device was recently offline, its entry may have timed out. Plug/unplug the router for 10–15 seconds to clear stale entries, then run arp -a again.

Tips

  • Filter for your subnet

    In arp -a (Windows) or arp -an (Linux/macOS), look for IPs starting with your network’s first three octets (e.g., 192.168.1.x). Ignore IPs like 127.0.0.1 (localhost).

  • Use PowerShell’s Get-NetIPConfiguration for extra details

    Run Get-NetIPConfiguration to see your active adapters and their assigned IPs. Combine this with Get-NetNeighbor for a full picture.

  • Check for duplicate IPs

    If two devices have the same IP (e.g., both show 192.168.1.50), one is misconfigured. Use your router’s DHCP reservation list to assign static IPs to critical devices (like a NAS or printer).

  • Export the list for later

    Pipe the output to a file:

    arp -a > devices.txt
    Or in PowerShell:
    Get-NetNeighbor | Export-Csv -Path devices.csv -NoTypeInformation
    This lets you compare lists over time to spot new/unexpected devices.

Troubleshooting

If arp -a shows no devices

This usually means:

  • The ARP cache is empty (devices haven’t communicated recently). Fix: Plug/unplug your router for 10 seconds, then reconnect and run arp -a again.
  • You’re not on the same subnet as the devices. Fix: Check your subnet with ipconfig (Windows) or ifconfig (macOS/Linux), then scan that range with nmap.
  • Your network uses IPv6. Fix: Use Get-NetNeighbor -AddressFamily IPv6 (PowerShell) or arp -a -A In6 (Windows 10+).

If nmap times out or fails

Possible causes:

  • Firewall blocking ICMP requests. Fix: Temporarily disable the firewall (sudo ufw disable on Linux) or use -Pn to skip host discovery.
  • The subnet is wrong. Fix: Verify your subnet in ifconfig or your router’s settings.
  • Too many hosts to scan. Fix: Narrow the scan to a smaller range (e.g., nmap 192.168.1.1-100).

If the router’s DHCP list is incomplete

This can happen if:

  • Your router has a DHCP reservation conflict. Fix: Remove duplicate reservations in the router’s DHCP settings.
  • Devices use static IPs outside the DHCP range. Fix: Check your router’s static lease table (look for "LAN Reservations" or "Static DHCP").

If devices disappear after rebooting

Some devices (like phones or laptops) may not appear until they’re actively using the network. To force them to show:

  1. Wake the device (e.g., press a button on a smart plug or unplug/replug a printer).
  2. Run arp -a or nmap again within 1–2 minutes.
  3. If still missing, check the router’s DHCP list for "leased" but inactive devices.

Frequently Asked Questions

Why don’t all my devices appear in arp -a?

arp -a only lists devices that have recently communicated with your machine. Idle devices (like a phone charging) won’t show. For a full list, use nmap or your router’s DHCP client table.

Can I find the MAC address of a device using just its IP?

Yes. Once you have the IP (from arp -a or your router’s list), run:

arp -a | find "IP_ADDRESS"

On Linux/macOS, use:

arp -an | grep "IP_ADDRESS"

The next line will show the MAC address next to the IP.

How do I exclude my own device from the list?

Your device’s IP is the one assigned to your active adapter. On Windows, check it with ipconfig (look for "IPv4 Address"). On Linux/macOS, use ifconfig. Filter out that IP when reviewing the list.

Is there a way to see devices that were connected but are now offline?

Yes, but with limitations:

  • Check your router’s DHCP client table—it may show "leased" IPs for devices that are currently offline.
  • Use nmap’s -Pn flag to scan for hosts that aren’t responding (though this may include faulty devices).
  • Review historical logs if your router supports them (e.g., Time Warner Cable routers have usage logs).

Why does my router show more devices than arp -a?

Your router’s DHCP list includes all devices that have ever requested an IP, even if they’re not currently active. arp -a only tracks devices that have communicated with your machine in the last few minutes. For a complete picture, combine both methods.

Can I automate this to run daily?

Yes! Save these commands to a script:

  • Windows (Batch):
    arp -a > devices.log
        Get-NetNeighbor | Select-Object IpAddress, LinkLayerAddress, State >> devices.log
  • Linux/macOS (Bash):
    sudo arp -an >> devices.log
        sudo nmap -sn 192.168.1.0/24 >> devices.log

Schedule the script to run daily using Task Scheduler (Windows) or cron (Linux/macOS). The output will grow over time, showing new devices as they connect.