You can find the IP address on a Mac in under a minute, either through System Settings, the Wi-Fi menu, or a single Terminal command. Knowing how is a small skill that pays off often.
An IP (Internet Protocol) address is the numeric label that identifies your Mac on a network. You might need it to set up a printer, configure port forwarding for a game server, connect to a remote desktop, troubleshoot a dropped connection, or give your IT team the details they need to support you.
This guide walks through every reliable method, from the point-and-click approach to quick command-line tricks. It also explains the difference between private and public addresses, how to fix common problems, and why IP visibility matters for security.
Private vs. Public IP Addresses: Know Which One You Need
Your Mac actually has two kinds of IP address, and the right one depends on what you are trying to do.
| Type | What it identifies | Typical format | Where it is used |
|---|---|---|---|
| Private (local) IP | Your Mac inside your home or office network | 192.168.x.x, 10.x.x.x, or 172.16–31.x.x | Printers, file sharing, local servers, router settings |
| Public (external) IP | Your whole network as seen by the internet | Assigned by your ISP, e.g. 203.0.113.45 | Remote access, website allowlists, VPN and firewall rules |
Your router hands out private addresses to each device on the network, usually through DHCP. Every device then shares the single public address your internet provider assigns to the router. That is why your Mac and your phone show different private IPs but the same public IP.
Most local tasks need the private address. Anything involving the outside world, such as connecting to your Mac from another location, needs the public one.
Method 1: Find Your IP Address in System Settings
System Settings is the easiest method and works on macOS Ventura and every later version. It shows your private IP address for whichever connection you are using.

If you are on Wi-Fi
- Click the Apple menu in the top-left corner and choose System Settings.
- Select Wi-Fi in the sidebar.
- Find the network you are connected to (it shows “Connected”) and click Details… next to it.
- Open the TCP/IP tab.
- Your private address appears next to IP address, along with your Router address and Subnet mask.
If you are on Ethernet
- Open System Settings and click Network in the sidebar.
- Select Ethernet (or the name of your USB or Thunderbolt adapter).
- Click Details… and open the TCP/IP tab.
- Read the value next to IP address.
On older macOS versions
On macOS Monterey and earlier, go to Apple menu > System Preferences > Network. Select your active connection in the left column. The IP address is displayed on the right, under the status line; click Advanced > TCP/IP for full details.
While you are on the TCP/IP tab, note the Configure IPv4 setting. “Using DHCP” means your router assigns the address automatically, which is the default for most users.
Method 2: Use Terminal Commands
Terminal gives you the IP address in seconds, which makes it the favorite of IT admins and power users. Open it from Applications > Utilities > Terminal, or press Command + Space and type “Terminal.”
Get your Wi-Fi IP address:
ipconfig getifaddr en0
On most MacBooks, en0 is the Wi-Fi interface. If the command returns nothing, you are probably on Ethernet; try en1 or another number.
List every active IPv4 address:
ifconfig | grep "inet "
Ignore 127.0.0.1, which is the loopback address your Mac uses to talk to itself. The other line, usually starting with 192.168 or 10, is your private IP.
Find your router (default gateway):
route get default | grep gateway
Check your full network configuration:
networksetup -getinfo Wi-Fi
This prints your IP address, subnet mask, router and DHCP status in one readable block. Replace Wi-Fi with Ethernet for a wired connection.
Method 3: The Option-Click Wi-Fi Shortcut
The fastest method of all needs no apps. Hold down the Option key and click the Wi-Fi icon in the menu bar.
An expanded menu appears with technical details about your current network. Look for the IP Address line under your connected network’s name. You will also see the router address, signal strength (RSSI), channel and security type, which is handy when diagnosing a weak connection.
If the Wi-Fi icon is missing from your menu bar, open System Settings > Control Center, find Wi-Fi, and set it to Show in Menu Bar.
Method 4: Find Your Public IP Address
Your Mac does not display its public IP anywhere in System Settings, because the address belongs to your router, not the computer. You have three easy options.
- Use a search engine. Type “what is my IP” into Google or another search engine, and the result usually appears at the top.
- Use Terminal. Run
curl ifconfig.meorcurl icanhazip.com, and your public address prints immediately. - Check your router. Log in to your router’s admin page (usually by entering the router address from Method 1 into a browser) and look for “WAN IP” or “Internet IP.”
Keep in mind that if you are connected to a VPN, every method will show the VPN server’s address rather than your provider’s. Disconnect the VPN first if you need your true public IP.
IPv4 vs. IPv6 on Your Mac
Most people need the IPv4 address, the familiar four numbers separated by dots, such as 192.168.1.24. Many networks now also assign an IPv6 address, a longer string of letters and numbers separated by colons, such as fe80::1c2b:3a4d:5e6f:7a8b.
Both appear in the TCP/IP tab of System Settings. In Terminal, run ifconfig en0 | grep inet6 to see IPv6 addresses. Unless a device or service specifically asks for IPv6, use the IPv4 address.
Troubleshooting Common IP Address Problems
- Your IP starts with 169.254. This “self-assigned” address means your Mac could not reach the router’s DHCP server. Restart your router, then go to TCP/IP and click Renew DHCP Lease.
- The IP keeps changing. DHCP leases expire, so addresses can shift. For printers or servers, set a DHCP reservation in your router, or choose Manually under Configure IPv4 to assign a static address.
- You see an IP conflict warning. Two devices claim the same address. Renewing the DHCP lease or restarting the router usually resolves it.
- No IP address appears at all. Confirm Wi-Fi is on, forget and rejoin the network, or check the Ethernet cable and adapter.
Why IP Visibility Matters for Security
Your IP address is more than a troubleshooting detail; it is part of your security footprint. Attackers scan public IP ranges for open ports and exposed services, and a compromised device on a local network can be used to reach others.
A few habits reduce the risk:
- Keep the macOS firewall on under System Settings > Network > Firewall.
- Never forward ports on your router unless you know exactly why.
- Use a trusted VPN on public Wi-Fi to mask your public IP.
- Keep macOS and your apps updated so known network vulnerabilities are patched.
For organizations, the challenge grows with every endpoint. IT and security teams need to know which device holds which address, spot unusual connections, and contain threats before they spread across the network.
Frequently Asked Questions
1. What is the quickest way to find my IP address on a Mac? Hold Option and click the Wi-Fi icon in the menu bar. Your IP address is listed right there.
2. Is my Mac’s IP address the same as my public IP? No. System Settings shows your private IP on the local network. Your public IP is shared by every device behind your router and is found with a “what is my IP” search or curl ifconfig.me.
3. Can I change my Mac’s IP address? Yes. Renewing the DHCP lease may assign a new private IP, or you can set one manually in the TCP/IP tab. Your public IP is controlled by your internet provider, though a VPN can mask it.
4. Is it safe to share my IP address? Sharing your private IP is low-risk because it only works inside your network. Be more careful with your public IP, as it can reveal your approximate location and be targeted by scans.
Conclusion
Finding the IP address on a Mac takes seconds once you know where to look. Use System Settings for a visual walkthrough, the Option-click Wi-Fi menu for speed, Terminal for precision, and a quick web check for your public address.
For businesses, knowing an IP address is only the first step. Protecting every Mac, PC and server connected to your network requires real-time visibility and threat containment that stops attacks before they cause damage. Xcitium’s endpoint security platform helps your team isolate unknown threats, monitor devices and keep your network secure without slowing anyone down.
Ready to see how it works for your organization? Request a Demo with Xcitium
Please give us a star rating based on your experience.



