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
- Open System Settings (Apple menu → System Settings).
- Click Network in the sidebar.
- Select your active connection (Wi-Fi or Ethernet) → Details…
- 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.
Method 2: Terminal one-liners
Open Terminal (Cmd + Space, type "Terminal") and use:
ipconfig getifaddr en0— local IP of your Wi-Fi interface (useen1for some Ethernet setups)curl -4 ifconfig.me— your public IPv4 from the command lineifconfig— every interface in detail (look forinetlines)
Which one do you need?
| Task | Address |
|---|---|
| AirPrint, screen sharing, local file sharing | Local (192.168.x.x) |
| Port forwarding a service on your Mac | Both — public to reach, local to forward to |
| Checking what websites/geolocation see | Public — 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.
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.