What a MAC address is and why you need it
A MAC address is a unique identifier assigned to every device that connects to a network. It stands for Media Access Control address, and it looks like a string of six pairs of numbers and letters separated by colons or hyphens — for example, `00:1A:2B:3C:4D:5E`. Your computer's MAC address is burned into its network card (either wired or wireless) and does not change unless you physically replace the card.
You need your MAC address when you set up a new network, troubleshoot connection problems, or configure your router to allow only certain devices to connect. Some workplaces and schools also require it to register your device on their network. Unlike your IP address, which can change, your MAC address stays the same and is specific to that one piece of hardware.
Key Takeaways
- Your MAC address is a unique hardware identifier that looks like six pairs of numbers and letters separated by colons, such as `00:1A:2B:3C:4D:5E`.
- Windows users can find it by opening Command Prompt and typing `ipconfig /all`, then looking for the "Physical Address" line.
- Mac users can open System Preferences, go to Network, select their connection, and click Advanced to see the MAC address listed as "Wi-Fi Address" or "Ethernet Address".
- Linux users can open a terminal and type `ip link show` or `ifconfig` to display the MAC address next to the interface name.
- You may need your MAC address for network registration, router configuration, or device troubleshooting.
Finding your MAC address in Windows
Open Command Prompt by pressing the Windows key, typing `cmd`, and pressing Enter. Once the black command window opens, type `ipconfig /all` and press Enter. The output will show all your network adapters and their details.
Look for the section labeled with your network connection name — usually "Ethernet" if you are plugged in with a cable, or "Wireless LAN adapter Wi-Fi" if you are using wireless. Find the line that says "Physical Address" — that is your MAC address. Write it down exactly as shown, including the hyphens.
If you have multiple network adapters (for example, both wired and wireless), you will see a Physical Address for each one. Make sure you are copying the address for the connection you actually use.
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 connection you want to check — either Wi-Fi or Ethernet — from the list on the left. Click the Advanced button in the bottom-right corner. A new window will open. Look for the "Wi-Fi Address" line if you selected Wi-Fi, or "Ethernet Address" if you selected Ethernet. That is your MAC address.
If you prefer the command line, you can also open Terminal (found in Applications > Utilities) and type `ifconfig`. Look for your connection name (usually `en0` for Ethernet or `en1` for Wi-Fi) and find the line starting with `ether` — the address that follows is your MAC address.
Finding your MAC address in Linux
Open a terminal window. Type `ip link show` and press Enter. The output will list all your network interfaces with their MAC addresses. Look for the interface you use — usually `eth0` for wired connections or `wlan0` for wireless — and find the line starting with `link/ether`. The address that follows is your MAC address.
If `ip link show` does not work on your system, try the older command `ifconfig` instead. Type `ifconfig` and press Enter. Find your connection name in the output and look for the line starting with `HWaddr` (hardware address) — that is your MAC address.
Different Linux distributions may format the output slightly differently, but the MAC address will always appear next to either `ether`, `HWaddr`, or `link/ether` depending on which command you use.
Finding your MAC address through your router
If you cannot access your computer directly, you can often find its MAC address by logging into your router. Open a web browser and type your router's IP address into the address bar — usually `192.168.1.1` or `192.168.0.1`. Log in with your router's username and password (often printed on the router itself or in its manual).
Look for a section called "Connected Devices", "DHCP Clients", "Device List", or "Attached Devices" — the exact name varies by router brand. Your computer should be listed there with its MAC address displayed next to it. This method is useful if you are trying to find the MAC address of a device that is currently offline or if you do not have direct access to it.
Troubleshooting if you cannot find your MAC address
If the commands above do not show a MAC address, check that you are looking at the correct network adapter. Computers often have multiple adapters — for example, Bluetooth, virtual network adapters, or multiple Ethernet ports. Make sure you are checking the one you actually use to connect to your network.
If you are using a virtual machine or remote desktop software, the MAC address you see may belong to the virtual adapter rather than your physical hardware. Check your virtual machine settings or contact your IT support to find the physical MAC address of the underlying computer.
On some corporate networks, your MAC address may be hidden or filtered by security software. If you need it for network registration, contact your IT department — they can look it up on their end and provide it to you.
What to do once you have your MAC address
Write down your MAC address and keep it somewhere safe — a notes app, a document file, or even a photo on your phone. You may need it months or years later when you set up a new network, troubleshoot a connection problem, or register a device.
If you are setting up MAC filtering on your router (a security feature that only allows devices with approved MAC addresses to connect), enter your address exactly as shown, including all hyphens or colons. Some routers accept either format, but others are strict about it.
If you are troubleshooting a network problem with IT support, having your MAC address ready will speed up the process. It lets them identify your device on the network without needing to know your IP address, which can change.
Frequently Asked Questions
Can someone use my MAC address to hack my computer?
A MAC address alone cannot be used to hack your computer — it only identifies your device on a local network. However, if someone knows your MAC address and has access to your network, they could potentially spoof it (pretend to be your device) to intercept traffic. This is why MAC filtering is sometimes used as a security layer, though it is not a complete protection on its own.
Is my MAC address the same as my IP address?
No. Your MAC address is a hardware identifier that stays the same, while your IP address is assigned by your network and can change. Your MAC address works on your local network, while your IP address is used across the internet. You need both for different purposes.
Will my MAC address change if I reset my computer?
No. Resetting your computer will not change your MAC address because it is stored on your network card hardware, not in software. The only way to change it is to replace the network card itself, or in some cases to spoof it with special software (though this is not recommended for most users).
What if I have both wired and wireless connections?
Each connection has its own MAC address. Your wired Ethernet port and your Wi-Fi card are separate pieces of hardware, so they each have a unique identifier. When you look up your MAC address, make sure you are checking the one for the connection you actually plan to use.
Do I need my MAC address to connect to public Wi-Fi?
No. Public Wi-Fi networks do not require your MAC address to connect. You only need it if the network specifically asks for it during registration, or if you are setting up a private network at home or work that uses MAC filtering.