Finding your IP address on a Mac is a fundamental task for anyone managing a network, troubleshooting connectivity issues, or setting up services like remote access. This unique numerical label acts as your device's identifier on a local network or the internet, allowing data to find its way to your computer. Whether you are using macOS Sonoma, Ventura, or an earlier version, the process is streamlined and accessible through the System Settings or the Terminal.
Understanding the Two Types of IP Addresses
Before you begin the search, it is helpful to understand the difference between the two primary types of addresses you will encounter. Your Mac has a Local IP address, also known as a private IP, which is used for communication within your home or office network. This is typically an address starting with 192.168 or 10. and is assigned by your router via DHCP. The other is the Public IP address, which is the address seen by the internet when you visit a website. This address is assigned by your Internet Service Provider (ISP) and is usually shared among multiple devices in your household via your router.
Finding Your Local IP Address via System Settings
The most visual and straightforward method to find your local IP address is through the System Settings application, which is the modern replacement for System Preferences. This interface provides a clear overview of your network configuration without requiring any command-line knowledge. You can navigate there to see the active connection at a glance.
Click the Apple logo in the top-left corner of your screen and select "System Settings."
In the sidebar, click on "Network." You may need to scroll down to find this option.
Select the active connection from the list on the left. This is usually labeled "Wi-Fi" if you are wireless or "Ethernet" if you are plugged in.
Once selected, the right side of the window will display your current network details. Your local IP address will be listed directly under the connection status, clearly labeled as "IP address."
Finding Your IP Address via the Terminal
For users who prefer the command line or need to script network diagnostics, the Terminal offers a powerful alternative. This method provides the same information but can be faster for advanced users. It also allows you to easily copy the address for immediate use in other commands or configuration files.
Open the "Terminal" application, which you can find in the Utilities folder within your Applications folder.
To find the local IP address, type the command ipconfig getifaddr en0 and press Enter.
If you are using an older Mac or a specific network configuration where Wi-Fi is not en0, you might need to use en1 or en2 .
Alternatively, you can type the command ifconfig and press Enter.
Look for the "inet" address associated with the interface you are currently using. For wireless, it is usually under "en0," and for wired Ethernet, it is usually under "en1."
Determining Your Public IP Address
While the local address is essential for managing your home network, the public IP address is crucial for understanding how the internet perceives your connection. This is particularly important for tasks like setting up a web server, peer-to-peer connections, or verifying your security settings. Unlike the local address, which is hidden behind your router, this address is visible to the world.
You can find this address by asking your Mac to query an external server designed to report back the connecting address. This method bypasses your local network interface and talks directly to the internet.
Open the Terminal application.
Type the command curl ifconfig.me and press Enter.