GetMadTools All guides Download Madconfig

MadToolsGuidesIP from MAC address

Network guide

How to find an IP address from a MAC address (and MAC from IP)

Short answer

Your PC keeps a list of the IP and MAC addresses it has seen, called the ARP table. Ping the devices on your network first, then run arp -a and look for the MAC address: the IP on the same line is the one you want. For the other direction, ping the IP and run arp -a <IP>. Both only work on your own local network.

How IP and MAC addresses are linked

A MAC address (like 3C-84-6A-12-AB-CD) is burned into a device's network card and doesn't change. An IP address (like 192.168.1.45) is given out by the network, usually by the router's DHCP server, and can change. When your PC talks to another device on the same network, it uses ARP to ask "who has 192.168.1.45?" and saves the answer in its ARP table. That table is how you map one to the other.

The first half of a MAC address also tells you the vendor (Hikvision, HP, Cisco, Apple…), which is often enough to recognise a device.

Find the IP from a MAC address

  1. Open Command Prompt (Win + R, cmd, Enter).
  2. Run ipconfig and note your IP and subnet, for example 192.168.1.20 / 255.255.255.0 (the network is 192.168.1.x).
  3. Fill the ARP table by pinging every address once. This takes about a minute on a /24 network:
    for /L %i in (1,1,254) do @ping -n 1 -w 100 192.168.1.%i >nul
  4. Search the table for the MAC. Windows writes MACs with dashes and lowercase letters, so type part of it that way:
    arp -a | findstr /i "3c-84-6a"

The line that matches shows the device's IP address in the first column. If several lines match a short prefix, they are devices from the same vendor; use more of the MAC to narrow it down.

Pinging every address is slow and fiddly on bigger networks. Madconfig scans the subnet for you and lists every device with its IP, MAC, vendor, name and open ports. Type part of the MAC into the search box and the matching device appears straight away.

Madconfig device list showing IP address, MAC address and vendor for each device on the network
Madconfig shows IP, MAC and vendor side by side, and you can search by any of them.

PowerShell: Get-NetNeighbor

PowerShell reads the same table and can filter by MAC directly. After filling the table as above, run:

Get-NetNeighbor -AddressFamily IPv4 | Where-Object LinkLayerAddress -like "3C-84-6A*" | Select-Object IPAddress, LinkLayerAddress, State

PowerShell shows MACs in uppercase with dashes. Entries with state Reachable or Stale are real devices; Unreachable and 00-00-00-00-00-00 entries can be ignored.

Find the MAC address of an IP

This direction is easier, because you can talk to the IP directly:

ping -n 1 192.168.1.45
arp -a 192.168.1.45

The Physical Address column is the MAC. Some other ways:

Can you ping a MAC address?

No. Ping works at the IP level, so it needs an IP address. Windows has no built-in way to send a ping to a MAC. You first find which IP belongs to the MAC (ARP table, router or a scanner) and then ping that IP. If what you actually want is to switch a PC on by its MAC address, that is Wake-on-LAN, which Madconfig can also send.

The MAC isn't in the ARP table

Router DHCP list and reservations

The router (or firewall) hands out IP addresses, so its DHCP leases page lists every MAC with the IP it got. Open the router's admin page (see how to find your router's IP) and look under DHCP, LAN or Connected devices. While you are there, a DHCP reservation ties a MAC to a fixed IP, so you never have to look it up again. This is useful for printers, cameras and NVRs.

FAQ

How do I find an IP address from a MAC address?

Ping the whole subnet, then run arp -a | findstr /i "your-mac". The IP on that line is the device's address. See the steps.

How do I find the MAC address of an IP?

Run ping on the IP, then arp -a followed by the IP.

Can you ping a MAC address to get an IP?

No, ping needs an IP. Use the ARP table, the router's DHCP list or a scanner. See why.

Can I find the IP of a MAC address on a different network?

Not from your PC. MAC addresses are only visible on the local network segment. You need access to a device on that network, such as its router or firewall.

How do I find the IP of other devices without knowing the MAC?

See how to find the IP address of any device on your network and how to find all devices on your network.

Every IP, MAC and vendor in one scan

Madconfig · free download · every feature for 5 days · Windows 10 / 11