logo
MacHow to Get IP Address and MAC Address on Mac

How to Simultaneously Get IP Address and MAC Address on Mac

By Hally | Last Updated

This tutorial shows how to get IP address and MAC address on Mac.

What are IP Address and MAC address?

The IP address is four-part numbers with up to three digits in each part. A string of numbers is used to mark a computer on the network, such as 192.168.1.1. It is unique on the local area network.

MAC address is a 12-digit code which is used to confirm the location of a device on the network. It is unique because it set from the factory.

Two Ways to Get IP Address and MAC Address on Mac OS X & macOS

Here are two ways you can refer to:

Way 1: Get IP address on Mac using System Preferences.

Step 1: Click on the Apple icon at the top-left corner and select System Preferences from the drop-down.

system preferences

Step 2: In the pop-up window, locate to Network and click on it.

network

Step 3: Choose your network connection in the left pane. Then the IP address of your Mac computer is listed on the right pane. To get the MAC address, you need to click the "Advanced" button.

get ip address from system preferences

Step 4: Switch to the Hardware tab, you can see the MAC Address as the image below.

get mac address from network

Way 2: Get IP address on Mac using Terminal.

Step 1: Click on Terminal from the Dock at the bottom of the screen.

Step 2: Type the command "ifconfig -l" to list your network.

Step 3: Confirm which is the target connection then input "ifconfig en0" and press Enter on the keyboard. The IP address is next to the inet while your MAC address is listing behind the ether.

get ip address and mac address from terminal

Related Articles: