HackMyIP
← back to sheets

How to Find Your IP Address on Mac (macOS)

~/sheets/how-to-find-ip-address-on-mac.md
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
    7
  1. Click Apple menu > System Settings
  2. 8
  3. Click Network in the sidebar
  4. 9
  5. Click your active connection (Wi-Fi or Ethernet)
  6. 10
  7. Click Details
  8. 11
  9. Your IP address is shown under TCP/IP
  10. 12
    13

    Method 3: Using Terminal

    14

    Open Terminal (Applications > Utilities > Terminal) and run:

    15
      16
    • ifconfig en0 | grep inet — for Wi-Fi
    • 17
    • ifconfig en1 | grep inet — for Ethernet
    • 18
    • curl https://hackmyip.com/api/ip — for your public IP
    • 19
      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