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

      Frequently Asked Questions

      25

      How do I find my IP address on a Mac?

      26

      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.

      27

      How do I find my Mac's IP address in Terminal?

      28

      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.

      29

      Is there a quick way to see my IP on Mac?

      30

      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.

      31

      How do I find my public IP on a Mac?

      32

      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.

      33

      How do I hide my IP address on a Mac?

      34

      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.

      35
      Published: May 2026