← back to sheets
How to Find Your IP Address on Mac (macOS)
1
Find Your IP Address on Mac
2
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.
3
Method 1: Find Your Public IP Instantly
4
Visit HackMyIP.com in Safari or any browser. Your public IP address appears immediately, along with your location, ISP, and network details.
5
Method 2: Using System Settings (macOS Ventura+)
6
7Click Apple menu > System Settings
8Click Network in the sidebar
9Click your active connection (Wi-Fi or Ethernet)
10Click Details
11Your IP address is shown under TCP/IP
12
13
Method 3: Using Terminal
14
Open Terminal (Applications > Utilities > Terminal) and run:
15
16
ifconfig en0 | grep inet — for Wi-Fi17
ifconfig en1 | grep inet — for Ethernet18
curl https://hackmyip.com/api/ip — for your public IP19
20
Method 4: Option-Click the Wi-Fi Icon
21
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.
22
Privacy on Mac
23
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.
24
Last updated: April 2026