Finding your local IP address on a Mac is a fundamental skill for anyone managing a home network, troubleshooting connectivity issues, or setting up local servers. This address, typically formatted as 192.168.x.x or 10.0.x.x, is assigned by your router and allows devices within your private network to communicate. Unlike the public IP assigned to your router by your internet service provider, your Mac's local IP is used exclusively for interactions inside your own network.
Why You Need Your Local IP Address
You might need this numerical identifier for several practical reasons. It is essential for configuring network printers, accessing network-attached storage (NAS) devices, or remotely connecting to your Mac from another device on the same Wi-Fi using Secure Shell (SSH) or Screen Sharing. Furthermore, it is the first step in troubleshooting why a specific device cannot access shared folders or stream media from another device on the network.
Network Diagnostics and Troubleshooting
If a printer is not printing or a file transfer is failing, verifying that both devices share the same subnet—indicated by the first three octets of the IP address—is the standard diagnostic step. This helps confirm that the issue is not a basic configuration error. Having this information ready also proves invaluable when contacting internet service support, as it allows them to distinguish between an issue with your modem's external connection and a problem specific to your local network setup.
Using System Settings to Find Your IP
The most visual method involves navigating through macOS System Settings, which provides a clear breakdown of your connection status. This approach is ideal for users who prefer a graphical interface over typing commands.
Open the System Settings application from the Apple Menu or Dock.
Click on Network in the sidebar.
Select the active connection from the right panel. This will usually be labeled "Wi-Fi" for wireless connections or "Ethernet" for a wired connection.
Locate the status section at the top of the window. Your local IP address will be displayed next to the label "IP Address".
Finding IP via Terminal Commands
For advanced users or those who prefer keyboard shortcuts, the Terminal offers the fastest way to retrieve this information. This method provides the exact data without navigating through multiple screens of settings.
The Ipconfig Getifaddr Command
The simplest terminal command targets the specific interface you are currently using. Open the Terminal application, located in Applications > Utilities, and type the following command. Replace en0 with en1 if you are using an external display adapter or an older network configuration.
Using the Network Utility Tool
macOS includes a legacy tool called Network Utility that provides a straightforward summary. You can find it in Applications > Utilities > Network Utility. Select the Info tab, and the interface will display your current IP, router address, and subnet mask. While this specific tool was deprecated in recent macOS versions, similar information is readily available in the Terminal or Network settings.
Verifying Your Connection Type
It is important to note that a Mac can have multiple IP addresses depending on its connection status. You will have one local IP address when connected via Wi-Fi and a completely different one when connected via an Ethernet cable. If you are using a Virtual Private Network (VPN), the system will also display a virtual IP address assigned by the VPN server, which is used for external internet traffic rather than local network communication.