# What a MAC address is

URL: https://ekom.blog/what-a-mac-address-is/
Published: 2023-12-19
Author: Ekom
Topics: How the internet works

> What a MAC address is, how it differs from an IP address, why phones now randomise it, and when you need to know yours.

Your router has a setting called "MAC filtering". Your phone has a setting called "Private Wi-Fi address". A friend asks you to "send me the MAC address of the printer". None of it sounds like computer talk you ever agreed to learn. It turns out to be one fairly simple idea.

## What a MAC address is

A MAC address (Media Access Control address) is a unique identifier burned into the network hardware of a device: its Wi-Fi chip, its Ethernet port, its Bluetooth. It's what lets devices on the same local network tell each other apart.

It looks like six pairs of letters and numbers, such as 3C:22:FB:1A:09:5E. Those pairs are in hexadecimal, a counting system that uses 0–9 and A–F.

If an IP address is like a postal address that can change when you move, a MAC address is like the serial number stamped on the device. Your home router uses it to know exactly which gadget on the local network it's talking to.

## MAC versus IP

They do different jobs, at different levels.

MAC address
IP address

What it identifies
A network adapter
A connection on a network

Where it's used
On the local network (your home, office)
Across the internet and locally

Assigned by
The manufacturer, traditionally
The network (router or provider)

Changes?
Rarely, traditionally
Often

Visible to websites?
No
Yes

Websites on the other side of the internet never see your MAC address. It's only used within the local segment. Your router swaps it out as traffic goes beyond the network. The sharing of a public address that I described in NAT: how many devices share one address works on top of this.

## How it's built

A MAC address is 48 bits long. The first half identifies the manufacturer (an organisational prefix assigned by the IEEE), and the second half is a number the manufacturer gives to the individual device. That's why you can often look up a prefix and see which company made a device. It's handy for working out which mystery gadget is on your network.

## Where you find it

- Windows: in Settings under Network, or by running ipconfig /all in a command prompt and looking for "Physical Address".

- Mac: in System Settings under Network, or by running ifconfig in Terminal.

- iPhone: Settings, General, About, Wi-Fi Address.

- Android: Settings, About phone, Status information, or Wi-Fi details. Menus vary by maker.

- Your router: the list of connected devices usually shows each one's MAC address.

- Printers and TVs: on a sticker or in the network settings.

## What people use it for

Fixed addresses for devices. Many routers let you reserve a specific local IP for a given MAC address, so a printer or server always lives at the same place. That's a sensible and common use.

Network management. Admins can see which devices are on the network, and block particular ones.

Access control (MAC filtering). You allow only listed devices to connect. It sounds secure, but it's weak: MAC addresses are broadcast in the clear over Wi-Fi, and can be copied or spoofed by someone who knows what they're doing. It's a speed bump, not a lock. A strong Wi-Fi password with modern encryption does much more. I covered other router settings in router settings worth changing on day one.

Registering devices. Some hotels, universities and provider services tie access to a MAC address.

Licensing and software. A few older programs bind a licence to the hardware address.

## The privacy side: randomised addresses

Because a MAC address is a stable identifier, it could be used to track a device as it moved between networks. A phone in a shopping centre, searching for Wi-Fi, could be recognised each time it came back, simply by the address it broadcast.

To reduce that, phone makers introduced randomised addresses. iPhones have offered a "Private Wi-Fi Address" setting since iOS 14, and Android has supported randomisation by default in recent versions, starting around Android 10. Your phone presents a different address for each network.

This causes one side-effect worth knowing. If your phone uses a random address, then a rule in your router that depends on the real hardware address, such as an IP reservation or a filter, may stop working. Equally, a network that remembered your device may treat it as new. If a device suddenly can't reach something it could before, check whether private addressing changed the address. You can switch it off for a particular network, usually in the Wi-Fi details for that network.

## If you manage a site or a small office

You'll rarely need a MAC address for the website itself. It matters for the network around it:

- Reserve addresses for printers, cameras and servers.

- Label devices in your router list with a name, so you can spot strangers.

- Check the list now and then. An unknown device could be a guest, or a neighbour using your Wi-Fi.

- Don't rely on MAC filtering as your security.

## Myths

- "Someone can find me from my MAC address." Only people on the same local network can see it, and it doesn't carry personal details.

- "MAC addresses can never change." The hardware one is set by the maker, but software can present a different one, and phones do so deliberately.

- "A website can ban my MAC address." It never sees it.

## Key takeaways

- A MAC address identifies network hardware on a local network; an IP address identifies a connection.

- It's six pairs of hexadecimal characters; the first half shows the maker.

- Useful for reserving addresses and reading router device lists.

- MAC filtering is a weak security measure.

- Phones now randomise it, which can confuse rules based on the real address.

## Related reading

- NAT: how many devices share one address

- IP addresses and privacy

- Port forwarding explained, and why to be careful

Open your router's list of connected devices. Do you recognise every one?

---

From Ekom (https://ekom.blog/). More: https://ekom.blog/llms.txt
