PDF download Download Article
Easily find the hardware address of a networked device
PDF download Download Article

Do you need to find the MAC address of another computer on your network? Whether you're using Windows, macOS, or Linux, you can easily find the MAC address of any host on your local network using simple commands. We'll show you how to use commands like arp and getmac to find the MAC address for a specific IP or hostname, and how to use nmap and your router's admin panel to see all IP and MAC addresses on the network.

How to Get MAC Address from IP: Quick Steps

  1. Open Command Prompt (Windows) or a Terminal (Mac/Linux).
  2. Run the command ping ipaddress to contact the IP address.
  3. Run arp -a ipaddress.
  4. Find the MAC address under "Physical Address" or "HWaddr".
Method 1
Method 1 of 4:

Using the Arp Command

PDF download Download Article
  1. You can use the arp command on any operating system to find the MAC address of another computer on your network.
    • If you're using Windows, type cmd into the Windows Search bar, then click Command Prompt.
      • You don't need to run Command Prompt as an administrator.
    • On a Mac, type Terminal into Spotlight search, and then double-click Terminal.
    • On Linux, press Ctrl + Alt + T or open a terminal window from your desktop environment.[1]
  2. You must make contact with the remote computer so its MAC address will be added to the cache—pinging is an easy way to do this.[2]
    • If the ping doesn't stop on its own, press Ctrl + C (on both PC and Mac) to stop the ping.[3]
    • If you have the computer's hostname but not its IP address, just ping the hostname—this will give you the IP address, which you'll need for the next step.
    Advertisement
  3. The MAC address will appear under "Physical Address" in the arp results for Windows, and "HWaddress" on macOS and Linux.[4]
    • Keep in mind that MAC addresses aren't routable, so you can only get the MAC address from an IP address on your local network. It's not possible to resolve an IP to a MAC address for a computer that isn't on your network.
  4. Advertisement
Method 2
Method 2 of 4:

Using the Getmac Command (Windows)

PDF download Download Article
  1. If you can log in to the computer remotely with administrative access (and it's also running Windows), you can use the getmac command to view every MAC address on that device.[5] Type cmd into the Windows Search bar, right-click Command prompt, and then select Run as administrator.
  2. The full command is getmac /s ipaddress /u username /p password.[6]
    • Replace ipaddress with the IP address or hostname of the remote computer.
    • Replace username and password with an actual username and password that has administrator rights on the remote computer.
  3. Each MAC address will appear next to a description of the interface type. If the interface isn't active, you'll see "Media disconnected" next to that MAC address.[7]
  4. Advertisement
Method 3
Method 3 of 4:

Scanning with Nmap

PDF download Download Article
  1. You can use Nmap for Linux, Windows, or macOS to scan your local network and display the MAC and IP addresses of all connected computers.[8] You can download and install Nmap from nmap.org/download.html.
    • If you're using Windows, type cmd into the Windows Search bar, right-click Command Prompt, and then select Run as administrator.
    • On macOS, type Terminal into Spotlight search, and then double-click Terminal.
    • On Linux, press Ctrl + Alt + T or open a terminal window from your window manager.
  2. To scan your network, you'll need to know which subnet to scan.
    • Windows: Run the ipconfig command.
    • macOS: Open System Settings and go to Network > Advanced > TCP/IP.[9]
    • Linux: Run ip a.
  3. The full command is nmap -sn xxx.xxx.xxx.*. Replace xxx.xxx.xxx.* with the network you want to scan. After a few moments, you'll see a list of all IP addresses on the network and their corresponding MAC addresses.
    • For example, if your IP address is 10.0.0.3 and you want to scan all hosts on your subnet, you would use nmap -sn 10.0.0.*.
  4. Advertisement
Method 4
Method 4 of 4:

Using Your Router

PDF download Download Article
  1. If you want to find the MAC address of a device on your network, you can easily do so from the router itself. However, because all routers have different admin interface layouts, the steps will vary by device. To get started, go to your router's admin interface in a web browser, then log in using the admin username and password.
    • Both the default address and username/password combo are usually printed on the router itself. Unless you manually changed the router's password, it's usually the default.
    • If you can't find the router's username and password, check out this guide to finding a router password.
  2. This might be called something like "Attached devices," "Connected devices," "Networked devices," "Network map," or similar. You may find it in a sub-section called "Advanced" or "Network."[10]
  3. Once you find the right area, you will see a list of connected devices (by IP address and/or hostname). Locate the IP address of the device in the list to find its corresponding MAC address.
    • You can use MAC addresses to set up filtering for specific devices on your router.
  4. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Tips

  • You can only find the MAC address of a device that's on the same subnet as your own. It's not possible to find a remote computer's MAC address unless you can log into that computer remotely.
  • If the computer you're trying to reach is behind a firewall, its MAC address may not be visible.
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement

You Might Also Like

Find a MAC Address on a NetworkEasy Ways to Find a MAC Address on Your Network or Computer
Find the MAC Address of Your ComputerFind the MAC Address of Your Computer
Find Mac Address Windows 114 Quick Ways to Find the MAC Address on Your Windows 11 PC
See Who Is Connected to Your Wireless Network See Who Is Connected to Your Wireless Network
Find an IP Address Find the Public or Private IP Address on Any Device
Check a Computer IP Address Find the IP Address of Your Computer, Phone, or Tablet
Find Your IP Address on a Mac Find Your Internal & External IP Address on a Mac
Find Out Your IP Address6 Easy Ways to See Your IP Address on PC, Mac, Android & iOS
Find the IP Address of Your PC Find Your IP Address on a PC: Windows & Linux
Find Your Printer IP Address Find Your Printer's IP Address
Find Your Subnet Mask Find Your Subnet Mask: The Complete Guide
Find Your Router's IP Address Find Your Router's IP Address: Mobile, PC, Mac, Chromebook, & Linux
Ping a Phone Ping an Android or iPhone: Easy Step-by-Step Methods to Try
Ping an IP Address Ping an IP Address + Troubleshooting & FAQ
Advertisement

About This Article

Stan Kats
Co-authored by:
Professional Technologist
This article was co-authored by Stan Kats and by wikiHow staff writer, Nicole Levine, MFA. Stan Kats is a Professional Technologist and the COO and Chief Technologist for The STG IT Consulting Group in West Hollywood, California. Stan provides comprehensive technology solutions to businesses through managed IT services, and for individuals through his consumer service business, Stan's Tech Garage. Stan holds a BA in International Relations from The University of Southern California. He began his career working in the Fortune 500 IT world. Stan founded his companies to offer an enterprise-level of expertise for small businesses and individuals. This article has been viewed 264,016 times.
How helpful is this?
Co-authors: 6
Updated: October 8, 2025
Views: 264,016
Categories: Computer Networking
Article SummaryX

1. Ping the IP address first.
2. Use arp -a (ip address) to find the MAC address.

Did this summary help you?

Thanks to all authors for creating a page that has been read 264,016 times.

Is this article up to date?

Advertisement