How to Find Your MAC Address from the Command Line in Windows 11
Finding your network adapter’s MAC address, the unique hardware identifier of your network interface, is needed for network configuration, filtering, or identifying a device. Windows 11 shows MAC addresses from the command line quickly.
The Command
getmac
What It Does
The `getmac` command lists the MAC (physical) addresses of your network adapters, each shown as a series of hexadecimal pairs. This hardware address uniquely identifies each network interface. The output pairs each MAC TANGKAS39 address with its adapter, letting you identify the address for your Wi-Fi or Ethernet connection specifically.
When You’d Use This
This is useful when configuring network access controls that filter by hardware address, identifying a device on a network, or providing your MAC address for network registration, which some networks require. Since a device has one MAC address per interface, this helps you find the specific address for your active Wi-Fi or Ethernet connection when a network or administrator asks for it.
Useful Variations
For more detail including adapter names, `ipconfig /all` shows each adapter’s Physical Address alongside its other settings. In PowerShell, `Get-NetAdapter | Select-Object Name, MacAddress` lists adapters with their MAC addresses clearly. The `getmac /v` verbose option adds the connection and adapter names for easier identification.
If It Doesn’t Work
If you are unsure which address goes with which connection, use `getmac /v` or `ipconfig /all` for the adapter names alongside their addresses. Remember a device has a separate MAC address for each network interface, so match the one to your active connection. MAC addresses are local identifiers not visible to sites on the internet, so they matter only on your local network.
Good to Know
A device can have multiple MAC addresses, one per network interface, so identify which belongs to the adapter you are using, typically your active Wi-Fi or Ethernet connection. MAC addresses identify hardware on the local network and are not visible to sites on the wider internet, which see only your public IP address.
Putting It Together
Once you have run it once or twice, this becomes second nature. As part of diagnosing and configuring your connection, this command belongs in your toolkit for whenever the network acts up. Used alongside the other networking commands here, it helps you methodically work from confirming basic connectivity to pinpointing exactly where a problem lies. Like anything in the terminal, the real value comes from trying it on your own system and adapting the variations above to what you actually need, so it is worth experimenting with in a safe, low-stakes situation before relying on it in a script or during troubleshooting. Keeping a note of the commands you find most useful, along with the variations that fit your workflow, turns scattered one-off tricks into a personal reference you can draw on whenever a similar task comes up again.