To check your IP address and MAC address on a Mac, use the System Settings app for IP details or the Terminal command line for both IP and MAC information. These identifiers help diagnose network issues, set up devices, and verify connectivity.
The IP address identifies your device on a network, while the MAC address is a unique hardware identifier assigned to your network interface. Both are essential for troubleshooting, setting up routers, and ensuring secure access.
On macOS, you can find your IP address through System Settings under Network. For the MAC address, use Terminal with the ifconfig command. This dual approach ensures accuracy and context-specific visibility.
Your IP address acts as a digital postal code. It routes data packets between devices on a network. When you visit a website, your router assigns a local IP (like 192.168.1.10) so traffic flows correctly within your home or office network.
The MAC address is hardcoded into your network adapter's circuitry. It's a 12-character hexadecimal string (e.g., 00:1A:2B:3C:4D:5E) and remains unchanged unless manually modified. Unlike IP addresses, which change based on network connection, MAC addresses stay constant across networks.
For example, when connecting to a public Wi-Fi hotspot, your Mac sends its MAC address to the router during authentication. Some networks restrict access based on known MAC addresses-a feature called MAC filtering. Knowing your MAC helps you bypass such restrictions if needed.
Use System Settings for quick IP address checks. Open System Settings → Network → select your active connection (Wi-Fi or Ethernet). Under Status, you'll see your IPv4 and IPv6 addresses. This method shows only the current IP assignment.
To view both IP and MAC addresses together, open Terminal. Type ifconfig en0 (for Wi-Fi) or ifconfig en1 (for Ethernet). Press Return. Look for lines starting with "inet" (IP address) and "ether" (MAC address).
Example output:
en0: flags=8863<UP,POINTTOPOINT,NOTRAILERS,BROADCAST,SMART,LLADDR>
inet 192.168.1.10 netmask 0xffffff00 broadcast 192.168.1.255
ether 00:1a:2b:3c:4d:5e
This shows the IP address as 192.168.1.10 and the MAC address as 00:1a:2b:3c:4d:5e. The en0 interface corresponds to Wi-Fi. Use en1 for wired connections.
Many users confuse IP addresses with MAC addresses. An IP address changes when you switch networks-connecting to a café's Wi-Fi gives you a different IP than at home. A MAC address never changes unless you spoof it intentionally.
Another mistake: assuming the IP shown in System Settings is your public IP. That's your private IP. To find your public IP (visible to websites), run curl ifconfig.me in Terminal. This returns your external IP, such as 203.0.113.45.
A non-obvious fact: macOS uses multiple network interfaces. You may have en0 (Wi-Fi), en1 (Ethernet), and awdl0 (Apple Wireless Direct Link). Only en0 or en1 show your actual network connection. Ignore lo0 (loopback) and awdl0 for real-world IP/MAC checks.
Network administrators use MAC addresses to track devices on a corporate network. IT departments often log MAC addresses to prevent unauthorized access. If a rogue device connects, they can trace it via the MAC address.
Home users check their IP address when setting up port forwarding for gaming, video calls, or remote access. For example, if you want to connect to a Raspberry Pi on your local network, knowing its IP (e.g., 192.168.1.50) lets you SSH into it via ssh [email protected].
Using the Terminal command arp -a reveals all devices on your local network. This shows their IP and MAC addresses. For instance, running arp -a might return:
192.168.1.1 (192.168.1.1) at 00:1a:2b:3c:4d:5f [ethernet]
192.168.1.10 (192.168.1.10) at 00:1a:2b:3c:4d:5e [ethernet]
This confirms your Mac's IP and MAC are registered on the network. It's useful for identifying duplicate IPs or checking if a device is connected.
| Method | IP Address | MAC Address | Best For |
|---|---|---|---|
| System Settings (GUI) | Yes (local) | No | Quick IP check, no terminal access |
| Terminal: ifconfig en0/en1 | Yes (local) | Yes | Complete info, scripting, automation |
| Terminal: curl ifconfig.me | Yes (public) | No | Checking external IP for web services |
| Terminal: arp -a | Yes (local) | Yes | Seeing all devices on network |
I once used ifconfig en0 to troubleshoot a printer that wouldn't connect to a Mac. The printer had a static IP conflict. After checking the Mac's IP and MAC, I confirmed the conflict and changed the printer's IP. The issue resolved in under five minutes.
If you're troubleshooting a slow connection, check your IP address to confirm it's valid. A default gateway like 192.168.1.1 with a subnet mask of 255.255.255.0 indicates a working setup. If your IP is 169.254.x.x, you're likely disconnected or misconfigured.
Understanding how to check your IP address and MAC address on a Mac empowers you to manage your network environment effectively. securing your devices, these tools deliver accurate, actionable data.