How to Find Your IP Address on macOS
Locate local and public IP addresses for network troubleshooting.
Last verified: February 21, 2026
macOS displays the local IP address in System Settings > Network > Wi-Fi > Details under the TCP/IP tab, which also shows the subnet mask, router address (your gateway), and DHCP lease expiry time. A faster route for technical users is opening Terminal and running ifconfig en0 | grep inet, which outputs the IPv4 and IPv6 addresses for the primary Wi-Fi adapter. The router IP (listed as Router or Default Gateway) is particularly useful to note when setting up port forwarding or diagnosing which DHCP server is assigning addresses on the network.
Quick Steps
Follow in order for the fastest result.
- 1Open System Settings > Network > Wi-Fi. Click Details next to your connected network. The IP address is on the TCP/IP tab.
- 2To find your public IP address, open any browser and type: what is my ip address.
- 3Note the local IP (typically 192.168.x.x or 10.x.x.x) for router configuration and port forwarding tasks.
Still Not Working?
Try these if the steps above didn't help.
- If no IP is shown (shows 0.0.0.0 or APIPA 169.254.x.x), follow the Fix Wi-Fi guide to obtain a valid IP assignment.
- Reconnect to Wi-Fi if the lease has expired and a new IP has not been assigned.
Verify the Fix
Confirm everything is fully working before closing this guide.
- Confirm the IP is in a valid private range: 192.168.x.x, 10.x.x.x, or 172.16–172.31.x.x.
- The default gateway listed should be the router IP, typically ending in .1.
Frequently Asked Questions
What is my IP address on macOS?
What is the difference between a local IP and a public IP?
Why does my IP address on macOS keep changing?
Why does my macOS show an IP starting with 169.254?
Same task, different device
Related guides for macOS
Turn Off Notifications
Silence noisy apps while keeping important alerts active.
Reset Network Settings
Clear all saved Wi-Fi, VPN, and Bluetooth settings when connectivity repeatedly fails.
Take a Screenshot
Capture your full screen or a selected region using built-in shortcuts.
Record Your Screen
Start a native screen recording without installing third-party software.