Finding the media access control (MAC) address, or hardware address, for the hosts on your network is a fairly simple process. It involves the use of the Address Resolution Protocol (ARP), which converts IP addresses into MAC addresses. Whether you're using Windows, Mac, or Linux, you can use the "arp" command to find MAC addresses on your network. If you can't get what you need from the arp command, try NMAP , an open-source network scanner. You can also log in to your router's admin panel to see MAC addresses for all connected devices. Read on to learn how to find a MAC address on a network on any platform, as well as how to find your own device's MAC address .
Quickly Look Up MAC Addresses on a Network
- Open the command prompt (Windows) or Terminal (Mac & Linux).
- Type arp -a and press Enter or Return .
- Find each device's MAC address in the "Physical Address" column.
Steps
Find MAC Addresses on a Network Using ARP
-
1Open your command prompt or terminal. Whether you're using Windows, Mac, or Linux, you can use the arp command to see a list of all MAC addresses on your local network.
- On Windows, press the Windows key, type cmd , and press Enter.
- On a Mac, open Terminal from the Launchpad.
- On Linux, press Ctrl + Alt + T to open a terminal .
-
Type arp -a and press ↵ Enter or ⏎ Return . If you're using a much older version of Windows, use arp /a instead. This command displays the current ARP (Address Resolution Protocol) cache tables. [1] X Research sourceAdvertisement
-
3Find the MAC address for each IP address in the "Physical Address" column. The IP addresses in the list each have a MAC address associated with them.
-
If an IP isn't showing up, ping it first. If you don't see the IP and MAC addresses of the device you're looking for, it's not in the ARP cache. If you ping the device's IP address or hostname (and it returns a response), it will then show in the ARP cache. To ping the address, type ping (IP Address) and press Enter or Return . For example, ping 192.168.1.112 .
- If you're still not seeing the device you're looking for, try scanning your network with NMAP .
Find MAC Addresses on a Network Using NMAP
-
1Install NMAP on your computer. NMAP is a free network mapping tool that makes it easy to identify MAC addresses on your network. You can use it to find the MAC addresses for devices on your network. This is a great alternative to the arp command, especially if you don't know the IP addresses of devices on your network–it will provide some information about each device it reports on. [2] X Research source
- On Windows and Mac, you can download NMAP from the NMAP website . Then, double-click the downloaded installer file and follow the on-screen instructions to install.
- On Linux, search your distribution's package manager for nmap , or download the RPMs from the NMAP website.
- If you're using Ubuntu or another Debian-based Linux distribution, install using sudo apt install nmap .
-
2Open the NMAP GUI (Zenmap). The easiest way to use NMAP is to use the graphical version, which you'll find in your application list. Just click Zenmap to get started. [3] X Research source
- If you prefer a command-line interface, you can use nmap in your macOS or Linux terminal, as well as at the Windows command prompt. Use the command man nmap on Linux and Mac, or type nmap and press Enter on Windows to see the available options.
-
3Enter the subnet you want to scan. In the "Target" field, you'll need to enter the subnet your device is on. You'll want to enter it in CIDR notation. To find what to enter:
- Open the Command Prompt (Windows) or a Terminal (Mac/Linux).
- On Mac & Linux, type ip addr and press Return or Enter . Find the IP address next to "inet" for your network adapter–it will usually look something like 192.168.0.5/24 . If this were your IP address, you would enter 192.168.0.0/24 , or 192.68.0.* into the "Target" field.
- On Windows, type ifconfig
and press Enter
. Find the IP Address for your local network–it will usually look something like 192.168.0.5
. If the subnet mask says 255.255.255.0
and your IP address is 192.168.0.5
, the address you'll be scanning is 192.168.0.0/24
, or 192.168.0.*
.
- If the subnet mask is not 255.255.255.0, refer to this CIDR notation cheatsheet to find out what to append to the end of your IP address based on your subnet.
-
4Select the Quick Scan profile and click Scan . This tells NMAP to run a quick scan of your network, which is all you'll need to identify MAC addresses and devices on the network. [4] X Research source
- The scan may take a few moments. Once it's complete, you'll see some results.
-
5Find the MAC address for each device on your network. You will see a list of all IP addresses connected to your network, their MAC addresses, their product names, if available, and which ports are open on the device.
Expert Q&A
Tips
- ARP is not a routed protocol, so it will only provide you with IP-to-MAC address information for your local network.Thanks
References
- ↑ https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/arp
- ↑ https://nmap.org/download.html
- ↑ https://nmap.org/zenmap/
- ↑ https://nmap.org/book/zenmap-scanning.html
- ↑ Garnik Ovsepyan. Computer Specialist. Expert Interview
- ↑ https://www.cmu.edu/computing/services/endpoint/network-access/mac-address.html
- ↑ https://ecs.rutgers.edu/how-find-your-physical-mac-address