IPHere.org › IP address on Mac
How to find your IP address on a Mac
macOS shows your local IP in System Settings and in Terminal. For your public IP, use a lookup.
Your public IP
Visit iphere.org in Safari or any browser. In Terminal:
curl https://iphere.org/ip
Local IP using System Settings
- Open the Apple menu → System Settings → Wi-Fi.
- Click Details next to your connected network.
- Your address is listed as IP address (and the router address as Router).
On older macOS: System Preferences → Network, select Wi-Fi, and read the status text.
Local IP using Terminal
ipconfig getifaddr en0
en0 is usually Wi-Fi. For wired Ethernet, try en1. To list every interface, run ifconfig and look for inet lines.
Other handy commands
scutil --dns | grep nameserver # DNS servers in use dscacheutil -flushcache # flush the DNS cache
After a DNS change, compare what the world sees with the DNS checker.
Public vs local
The address in System Settings is your private one; websites see your public one. They are different, and that is normal. Read public vs private IP addresses.
Frequently asked questions
What is my IP address in Terminal on a Mac?
Run ipconfig getifaddr en0 for the Wi-Fi address, or curl https://iphere.org/ip for your public address.
Why does my Mac IP keep changing?
Your router leases addresses for a limited time and may assign a new one. You can set a DHCP reservation in the router to keep it fixed.
Related guides
An Matrix Anchor free tool. We build websites, apps and VoIP for businesses.