Guide

How to find your IP address on a Mac

Find your Mac's private IP address in System Settings or Terminal, find your router's IP, and check your public IP — for macOS Sequoia, Sonoma and Ventura.

Updated 21 November 2026 · 1 min read

Your Mac has a private IP on your local network. Websites see your network's public IP instead — check it on our home page.

Method 1: System Settings (macOS Ventura and later)

  1. Open the Apple menu → System Settings.
  2. Click Wi-Fi (or Network → Ethernet).
  3. Click Details… next to the network you are connected to.
  4. Select TCP/IP. You will see:
    • IP address — your private IPv4 address
    • Router — your router's IP (default gateway)
    • IPv6 address — if your network supports IPv6

Method 2: The Wi-Fi menu shortcut

Hold the Option (⌥) key and click the Wi-Fi icon in the menu bar. Your IP address, router address and other details appear directly in the menu.

Method 3: Terminal

Open Terminal (Applications → Utilities) and run:

ipconfig getifaddr en0

en0 is usually Wi-Fi on laptops. If nothing prints, try en1. To see your router's address:

route -n get default | grep gateway

And to print your public IP:

curl -4 https://ipclarify.com

Which IP do I need?

  • For devices on your network (printers, file sharing, port forwarding): the private IP from System Settings.
  • For anything on the internet (whitelists, remote access, VPN checks): your public IP from our home page.

If your IP starts with 169.254

Your Mac could not get an address from the router. Turn Wi-Fi off and on, restart the router, or go to Details… → TCP/IP → Renew DHCP Lease.

All tools

Look up

Privacy & VPN

Network tools

More