Finding your IP address on a Mac is useful for network diagnostics, remote access, and security checks. Your Mac can have multiple IP addresses depending on whether you are looking at your local network connection or your public address on the internet.
This guide walks through built-in tools, menu options, and terminal commands so you can locate the right IP address quickly. The steps work across recent macOS versions and suit both wired and wireless setups.
| Type | Description | Where to Find | Example |
|---|---|---|---|
| Local (Private) IP | Address used inside your home or office network | System Settings or ifconfig | 192.168.1.10 |
| Public (External) IP | Address seen by websites and services from your router | Web search or curl ifconfig.me | 203.0.113.45 |
| Loopback IP | Address used to reach your own Mac | System Information or ping | 127.0.0.1 |
| Link-Local (DHCP Fallback) | Automatic address when DHCP fails | ifconfig output | 169.254.x.x |
Find IP Address via System Settings
Open Network Preferences
The quickest way for most users is through System Settings. This interface shows your active network connection and the assigned local IP address without using the terminal.
Wi-Fi and Ethernet Details
Select Wi-Fi or Ethernet, then click the active connection. The status section displays your local IP address in a clear, human-readable format that updates as connections change.
Connection Status Panel
In this panel, you can see whether you are connected, the signal strength, and additional details like DNS and router information. The IP address appears next to a labeled field, making it easy to copy or note down.
Using the Terminal to Locate Your IP
ifconfig Command Line Tool
The ifconfig command in Terminal provides detailed network interface data. You can see all active interfaces, including en0 for Wi-Fi and en1 for Ethernet, along with their assigned IP addresses.
ipaddr Flag for Quick Output
Combining ifconfig with grep for "inet" helps you filter out unrelated data and focus on the IP address lines. This approach is helpful when you want a cleaner view or need to script network checks.
Checking Both IPv4 and IPv6
On modern networks, your Mac may use IPv6 alongside IPv4. The output from ifconfig shows both types, and you can identify them by the address format. Understanding both ensures you recognize which address your applications are using.
Network Utility and Online Tools
Built-in Network Utility App
macOS includes a Network Utility tool that provides a straightforward Info menu to see your IP address as it appears on the local network. This method is helpful for users who prefer graphical tools over command-line input.
External Services and Web Checks
Websites that detect public IP can show the address your router presents to the internet. These services are useful for port forwarding setup, remote access planning, and verifying whether your connection is using a carrier-grade NAT.
Firewall and Security Considerations
When sharing or checking your IP address, especially the public one, consider firewall rules and privacy settings. Controlling what information you reveal helps protect your network from unnecessary exposure.
Troubleshooting Common Issues
Missing or Unexpected IP Values
If an interface shows an IP in the 169.254 range, it indicates a DHCP problem. Restarting your router, checking cables, or toggling Wi-Fi off and on often resolves this and restores proper addressing.
Multiple Network Profiles
Location profiles and network configurations can override preferred settings. Reviewing your network locations and ensuring the correct service order in System Settings prevents conflicts and helps your Mac choose the right connection.
Terminal Commands Returning No Data
When commands like ifconfig produce no usable output, verifying network interface names and ensuring hardware is active usually reveals the issue. Restarting network services or rebooting the Mac can also restore visibility to IP details.
Key Takeaways for Managing IP Addresses on Mac
- Use System Settings for a fast, visual overview of your local IP address on Wi-Fi or Ethernet
- Open Terminal and use ifconfig to see detailed interface data, including IPv4 and IPv6 addresses
- Identify your public IP by checking a trusted website or using a simple curl request to an IP detection service
- Watch for 169.254 addresses, which indicate DHCP issues, and resolve them by checking router and connection settings
- Keep network locations and firewall rules reviewed to avoid conflicts and to manage what address information is exposed
FAQ
Reader questions
Why does my Mac show different IP addresses in different apps?
Apps may display the local network IP, the public IP seen by remote servers, or a loopback address depending on what they access. System Settings and ifconfig show the network interface address, while websites show your public address.
Can I find my IP address without opening System Settings or Terminal?
Yes, you can visit a website that detects connection information to view your public IP address. For the local IP, System Settings remains the fastest built-in method, but external sites are useful for quick checks on the public address.
How do I know if my Mac is using IPv4 or IPv6?
Look at the address format; IPv4 uses four decimal groups separated by dots, while IPv6 uses hexadecimal groups separated by colons. The ifconfig output lists both inet (IPv4) and inet6 (IPv6) entries for each interface. Frequent changes often come from DHCP lease renewals or router settings. Setting a static IP in Network Settings, reserving an address in your router, or checking router logs can stabilize the address assigned to your Mac.