What a MAC address is and why you need it
A MAC address (Media Access Control address) is a unique identifier assigned to your computer's network card. It looks like a string of six pairs of letters and numbers separated by colons or hyphens — for example, `00:1A:2B:3C:4D:5E`. Every device that connects to a network has one, and no two are identical.
You need your MAC address when you set up a new WiFi network, register a device with your internet provider, configure network security rules, or troubleshoot connection problems. Some routers and networks use MAC filtering to allow only certain devices to connect. Your MAC address is also what your router uses to assign the same local IP address to your computer each time you connect.
Key Takeaways
- Your MAC address is a unique hardware identifier that looks like six pairs of numbers and letters separated by colons, such as `A4:5E:60:C2:F8:1B`.
- In Windows, you can find it by opening Command Prompt and typing `ipconfig /all`, then looking for the "Physical Address" line.
- On a Mac, open System Preferences, go to Network, select your connection, and click Advanced to see the MAC address listed as "Wi-Fi Address".
- In Linux, open a terminal and type `ip link show` or `ifconfig` to display your MAC address next to your network interface name.
- Your MAC address is specific to each network card, so a computer with both WiFi and Ethernet will have two different MAC addresses.
Finding your MAC address in Windows
Open the Start menu and type `cmd` to launch Command Prompt. Right-click it and select "Run as administrator" if you want full details. Type the command `ipconfig /all` and press Enter. A list of network information will appear on your screen.
Look for the section labeled with your network connection name — usually "Ethernet" if you are plugged in with a cable, or "Wireless LAN adapter WiFi" if you are connected wirelessly. Find the line that says "Physical Address" — that is your MAC address. It will be formatted as six pairs of characters separated by hyphens, like `A4-5E-60-C2-F8-1B`.
If you prefer a graphical method, you can also right-click the network icon in your system tray (bottom right corner), select "Open Network & Internet settings", click "Advanced network options", then scroll down and select your active connection. Click "View additional properties" and scroll to find "Physical address (MAC)".
Finding your MAC address on a Mac
Click the Apple menu in the top left corner and select "System Preferences" (or "System Settings" on newer versions). Click "Network" in the left sidebar. Select the network connection you want to check — WiFi or Ethernet — from the list on the left.
Click the "Advanced" button in the bottom right corner. A new window will open. Click the "WiFi" or "Ethernet" tab at the top, depending on which connection you selected. Your MAC address appears in the field labeled "Wi-Fi Address" or "Ethernet Address". It will look like six pairs of characters separated by colons, such as `A4:5E:60:C2:F8:1B`.
Finding your MAC address in Linux
Open a terminal window. Type the command `ip link show` and press Enter. Your terminal will display all network interfaces on your computer. Find the interface you use — usually `eth0` for Ethernet or `wlan0` for WiFi — and look for the line that starts with "link/ether". The string of characters after that is your MAC address.
Alternatively, you can type `ifconfig` and press Enter. This older command shows similar information in a different format. Look for your network interface name and find the line labeled "HWaddr" (hardware address) or "ether" — that is your MAC address. If neither command works, your Linux distribution may require you to install the `net-tools` package first.
What to do if you have multiple network cards
Many computers have both a WiFi card and an Ethernet port, and some have multiple of each. Each one has its own MAC address. When you run the commands above, you will see all of them listed separately.
If you are setting up a WiFi network, use the MAC address next to your WiFi adapter. If you are configuring an Ethernet connection, use the Ethernet MAC address. The names in Windows are "Wireless LAN adapter" and "Ethernet", on Mac they are "Wi-Fi" and "Ethernet", and in Linux they are usually `wlan0` and `eth0`. Write down which address goes with which connection so you do not mix them up.
Checking your MAC address from your router
You can also see your computer's MAC address from your router's admin panel. Open a web browser and type your router's IP address — usually `192.168.1.1` or `192.168.0.1` — into the address bar. Log in with your router's username and password (often printed on the router itself or in your setup paperwork).
Look for a section called "Connected Devices", "DHCP Clients", "Device List", or "Attached Devices". Your computer will be listed there with its MAC address next to it. This method is useful if you want to verify the address you found on your computer, or if you need to find the MAC address of another device on your network.
Frequently Asked Questions
Can I change my MAC address?
Yes, you can change it temporarily using software tools, a process called MAC spoofing. However, the change resets when you restart your computer. Permanently changing your MAC address requires replacing the network card itself, which is rarely necessary. Most people should not attempt this unless a network administrator specifically asks them to.
Why do I need my MAC address for my internet provider?
Internet providers sometimes use MAC addresses to identify your modem and may support service is tied to the correct device. If you replace your modem or router, the provider may ask for the new MAC address to reactivate your connection. Some providers also use MAC filtering as a security measure to prevent unauthorized devices from connecting to your network.
Is my MAC address the same as my IP address?
No. Your MAC address is a hardware identifier that stays the same on your device. Your IP address is assigned by your network and can change. MAC addresses work on your local network, while IP addresses route data across the internet. You need both for your computer to communicate on a network.
What if the MAC address field is blank or missing?
This usually means the network adapter is disabled or not installed. In Windows, check Device Manager to see if your network adapter is listed and enabled. On Mac, go to System Preferences and make sure the network connection is active. In Linux, make sure the interface is up by typing `ip link set [interface] up` in the terminal, replacing [interface] with your adapter name.