What Is a MAC Address? (and How to Find Yours)

What a MAC address is, what it is used for, how to find it on Windows, Linux, macOS, Android and iOS, and how it differs from an IP address.

Cascada de datos y código binario, representación de una dirección MAC

You walk into a hotel, open your laptop and the Wi-Fi lets you straight in. Next morning, at the office, the same laptop cannot get past the network at all. Nothing changed on your machine. What changed is the number it shows at the door: the MAC address.

That number sits right next to the famous IP address, and almost nobody ever looks at it. That is a mistake. The MAC address is the closest thing a network card has to an ID card, and every device carries one, whatever the brand. Laptop, phone, printer, smart plug, the router itself.

Five minutes and you will know what it is, what it is for and how to find it on Windows, Linux, macOS, Android and iOS. You will also understand why your phone keeps showing a different one, and why that unknown device on your network is usually your own.

What is a MAC address?

MAC stands for Media Access Control. It is the unique identifier the manufacturer burns into each device’s network card, so a network can recognise that device without any ambiguity.

Three facts pin it down:

  • 48 bits, written as 12 hexadecimal digits in six pairs, usually separated by colons: 00:1A:2B:3C:4D:5E.
  • The first six digits identify the manufacturer. Those are the OUI, short for Organizationally Unique Identifier, managed and published by the IEEE. The last six are assigned by that manufacturer to each unit it ships.
  • They do not repeat. No two devices on the planet share the same MAC address, and the manufacturer prefix is what stops them from colliding.

There is one thing the IP address cannot give you here. This identifier belongs to the hardware. It is burned in at the factory and it does not care where you connect. Your IP address is the one that changes every time you move. Coffee shop, airport, home, three different numbers in a day. Your MAC stays exactly where it was.

What a MAC address is used for

Think of it as the card a device shows at the door before it is allowed in. It does three jobs:

  • Identifying devices on a local network. A switch or an access point knows which machine gets each packet because of its MAC address.
  • Controlling who gets in. An administrator can allow or deny access based on the MAC. That is MAC filtering, and you will find it on office Wi-Fi and on plenty of home routers.
  • Segmenting and protecting the network. In managed environments, switches use the MAC to decide which port each frame leaves by and what each machine gets to see. That is VLANs and port security in one sentence.

Now the limit almost everyone forgets. Inside your local network the MAC address is the reference. On the internet it is not. Your MAC never travels across the internet. What goes out is your IP address. The MAC stays in the local segment, on your side of the router.

How to find the MAC address on your device

It depends on the system, and it takes less than a minute. Here is what actually works.

Windows

  1. Press Windows + R and type cmd.
  2. Run ipconfig /all.
  3. Look for Physical Address. That is your MAC.

Linux

  1. Open a terminal.
  2. Run ip a or ip link.
  3. Next to your interface you will see link/ether followed by the address. If you prefer the classic, ifconfig shows it as HWaddr.

macOS

  1. System Settings → Network.
  2. Select the active connection and click Details.
  3. Open the Hardware tab. Your MAC address is right there.

Android

  1. Settings → Wi-Fi.
  2. Open the settings for the network you are on. The MAC appears at the bottom. On modern Android, watch out, you may be looking at a random MAC kept for privacy.

iPhone or iPad

  1. Settings → General → About.
  2. Look for Wi-Fi Address. That is your MAC.

MAC address vs IP address

People mix these two up all day long. They work at different levels, so here is the whole comparison in one table.

MAC address IP address
What it is Identifier of the network hardware Logical identifier inside a network
Who assigns it The manufacturer The network, by hand or automatically
Does it change? In theory, no Yes, depending on where you connect
Scope Your local network Your network and the internet too

Read the table once and the confusion is gone. The MAC identifies the hardware and it never moves. The IP identifies your position on the network and it moves with you. Two separate layers of the same trip.

Can you change a MAC address?

In theory the manufacturer burns it in and nobody touches it. In practice you can mask it in software. That is what people call MAC spoofing.

It has real uses. Testing, getting around a filter, or not exposing your real identifier on a public network. Now the warning that comes with it. Impersonating another device’s MAC can land you in legal trouble and it can break things on the network around you. This is not a setting to change on a whim.

Who assigns MAC addresses

Behind every MAC address there is a system that makes sure no two are alike anywhere in the world. The IEEE coordinates it and hands out blocks of prefixes, the famous OUIs, to manufacturers. Each manufacturer gets its own block and is responsible for the last digits, with no repeats allowed. That is why, just by looking at the first three bytes, you can tell who built a card.

  • The first byte carries two more bits. One says whether the address is unicast, meant for a single recipient, or multicast, meant for several. The other says whether it is global, unique in the world, or local, assigned by software.
  • Manufacturers request their blocks and keep them in a public registry that anyone can search.

That registry is the reason a network tool can stare at a MAC address and hand you the brand of the card inside the machine.

MAC address and privacy: why your phone keeps changing address

A MAC address is unique and stable, and for years that made it the perfect trail. Access points could log which devices walked past them, even the ones that never connected, and follow a phone from one Wi-Fi network to the next.

Android and iOS cut that off with random MAC addresses.

  • Each network sees a different MAC, generated for that specific network. Your real identifier never goes out.
  • It is on by default in modern versions. You can turn it off per network when you need the real MAC, for example to get past MAC filtering at home.
  • Do not confuse it with MAC spoofing. Here the system changes the address for your privacy. Nobody is impersonating another machine.

One detail explains a pile of everyday oddities. Why a hotel’s Wi-Fi sees you as a brand new device every time you come back. Why a network with MAC filtering keeps you out even when you swear you are on the list. Why your router shows devices you do not recognise.

Frequently asked questions

Is a MAC address the same as an IP address?

No. The MAC identifies the hardware and the manufacturer assigns it. The IP identifies a device inside a network and the network assigns it. Both live on your machine at the same time, but they play in different leagues.

Why does my phone show a different MAC address each time?

For privacy. Android and iOS generate a random MAC address for every network, so nobody can follow you from one Wi-Fi to the next. To see the real one, turn that option off in the settings of that specific network.

Can someone see my MAC address from the internet?

No. Your MAC does not leave your local network. What is visible from outside is your IP address, never your hardware identifier.

What is the manufacturer prefix for?

It tells you who built the device and it guarantees that addresses do not repeat. With it you can work out the brand of a machine just by reading its MAC address.

Does a MAC address identify me personally?

Not directly. It points to a piece of hardware. To turn that piece of hardware into a person you need more data, which network it joins, when, and from where. Mixed together, that trail can follow a device, and that is exactly why random MAC addresses exist on phones.

Conclusion

A MAC address goes unnoticed until the day it matters. You have a network problem. You want to control who gets on your home Wi-Fi. A device shows up as unknown and you cannot explain it. Knowing what a MAC address is, what it is for and how to find it strips a lot of “I have no idea what is going on” out of your week.

Do one thing today. Open your router, pull up the list of connected devices and match each MAC address to a machine you own. The unknown device is almost always yours. When it is not, you found the problem before it found you.

And the next time a network recognises you or shuts you out, you will know who is speaking on your behalf. Your hardware’s ID card.