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
- Open Command Prompt (Win + R,
cmd, Enter). - Run
ipconfigand note your IP and subnet, for example192.168.1.20/255.255.255.0(the network is192.168.1.x). - 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 - 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.

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:
getmac /vshows the MAC addresses of your own PC's adapters.nbtstat -A 192.168.1.45asks a Windows PC for its name and MAC (only if NetBIOS is enabled on it).- If ping is blocked by the device's firewall, the ARP entry usually still appears, because ARP happens before the ping is answered.
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
- Different subnet or VLAN: ARP doesn't cross routers. A device behind a router shows the router's MAC, not its own. Run the lookup from a PC on the same VLAN, or check the switch or firewall's ARP table.
- The table wasn't filled: entries expire after a few minutes. Ping the whole subnet again just before you search.
- Wrong format:
arp -auses3c-84-6a-12-ab-cd, while labels often say3C:84:6A:12:AB:CD. Swap colons for dashes. - Random MAC addresses: phones and laptops on Wi-Fi often use a private (random) MAC per network, so the MAC on the label or in settings won't match. Look for the "private address" shown in the device's Wi-Fi settings.
- Device is off or asleep: it won't answer ARP until it wakes up.
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.