On a Mac, just like any other OS, your local IP (inside your network) is different from your public IP (what the internet sees). Here are both methods — through Settings and through the Terminal.
Finding your public IP
The fastest way is to open the Show-IP.ir homepage in Safari or any other browser on your Mac — your public IP address, country, city, and ISP show up instantly.
Finding your local IP via System Settings
- Open System Settings (or System Preferences on older versions of macOS).
- Click Network.
- Select your connected network (Wi-Fi or Ethernet); your local IP address appears right on that screen.
- Click Details… for more information.
Finding your local IP via Terminal
Open the Terminal app (search "Terminal" in Spotlight) and run:
ipconfig getifaddr en0
That shows your Wi-Fi local IP. If you're on Ethernet, you may need to replace en0 with en1. Alternatively:
ifconfig | grep "inet "
Key takeaways
- The fastest way to see your public IP: open Show-IP.ir.
- Your local IP is visible under System Settings → Network.
- From the Terminal,
ipconfig getifaddr en0shows your local IP too.