Advertisement

How to Find Your IP Address on a Mac

macOS shows your local IP in a couple of clicks, and the Terminal offers even faster one-liners. As on every platform, remember there are two different answers: your local IP (on your own network) and your public IP (what the internet sees).

Fastest: your public IP

Open the whatismineip.com homepage — it shows your public address, provider and location instantly, in any browser.

Method 1: System Settings

  1. Open System Settings (Apple menu → System Settings).
  2. Click Network in the sidebar.
  3. Select your active connection (Wi-Fi or Ethernet) → Details…
  4. Your local IP appears right there, e.g. 192.168.1.23; the TCP/IP tab shows the subnet mask and router address too.

Quick shortcut: hold Option and click the Wi-Fi icon in the menu bar — macOS reveals the IP address and router inline.

Advertisement

Method 2: Terminal one-liners

Open Terminal (Cmd + Space, type "Terminal") and use:

Which one do you need?

TaskAddress
AirPrint, screen sharing, local file sharingLocal (192.168.x.x)
Port forwarding a service on your MacBoth — public to reach, local to forward to
Checking what websites/geolocation seePublic — check here

A note on Private Wi-Fi Address

Modern macOS (like iOS) can use a randomised MAC address per network ("Private Wi-Fi Address"). This doesn't change your IPs, but it can make your Mac appear as a new device to the router, which occasionally surprises people using MAC-based DHCP reservations.

🌐 Curious what your connection reveals right now? Check your IP address and location →

Frequently asked questions

Why do I have several inet entries in ifconfig?

Each network interface (Wi-Fi, Ethernet, VPN tunnels, virtual machines) has its own address. The one on en0 is usually your Wi-Fi; 127.0.0.1 is loopback.

Does my Mac's IP change when I switch networks?

Yes — each network's router assigns its own local address, and each connection has a different public IP. Home, office and café will all differ.

Advertisement