How to Find Your IP Address on Mac (macOS)
Find Your IP Address on Mac
Your Mac has a private IP address on your local network and a public IP address visible to the internet. Here is how to find both.
Method 1: Find Your Public IP Instantly
Visit HackMyIP.com in Safari or any browser. Your public IP address appears immediately, along with your location, ISP, and network details.
Method 2: Using System Settings (macOS Ventura+)
Method 3: Using Terminal
Open Terminal (Applications > Utilities > Terminal) and run:
ifconfig en0 | grep inet — for Wi-Fiifconfig en1 | grep inet — for Ethernetcurl https://hackmyip.com/api/ip — for your public IPMethod 4: Option-Click the Wi-Fi Icon
Hold Option and click the Wi-Fi icon in your menu bar. This shows your IP address, router address, security type, and channel — all in one glance.
Privacy on Mac
macOS includes iCloud Private Relay (requires iCloud+) which hides your IP from websites in Safari. For full protection across all apps, use a VPN. Verify your setup with our DNS leak test and WebRTC leak test.
Frequently Asked Questions
How do I find my IP address on a Mac?
For your public IP, visit HackMyIP.com in any browser and it appears immediately with your location and ISP. For your private IP on macOS Ventura and later, go to Apple menu > System Settings > Network, click your active connection, click Details, and read the IP address under TCP/IP.
How do I find my Mac's IP address in Terminal?
Open Terminal (Applications > Utilities > Terminal) and run ifconfig en0 | grep inet for Wi-Fi or ifconfig en1 | grep inet for Ethernet. To get your public IP, run curl https://hackmyip.com/api/ip.
Is there a quick way to see my IP on Mac?
Yes. Hold Option and click the Wi-Fi icon in your menu bar. This shows your IP address, router address, security type, and channel all in one glance.
How do I find my public IP on a Mac?
Visit HackMyIP.com in Safari or any browser and your public IP appears immediately, or run curl https://hackmyip.com/api/ip in Terminal. This is the address websites and online services see.
How do I hide my IP address on a Mac?
macOS includes iCloud Private Relay (which requires iCloud+) that hides your IP from websites in Safari. For full protection across all apps, use a VPN, and verify your setup with a DNS leak test and a WebRTC leak test.