How to find your IP address on a Mac: public and local
Updated 10/19/2026
Like any computer, your Mac has a public IP address, seen by the internet, and a local one, used only inside your network. Here is how to find both, from the interface or from the Terminal.
Your public IP address: the fast way
Open the What is my IP address page in Safari or any other browser. You instantly see your public IPv4 or IPv6 address, the protocol, country and reverse DNS, with one-click copy. This is the one you use for remote access, allowlists or support conversations.
Your local IP in System Settings
On macOS Ventura or newer open System Settings, Wi-Fi, click Details next to the connected network and read IP address. For a wired connection, go to System Settings, Network and pick the Ethernet interface. On older versions the same information lives in System Preferences, Network.
Shortcut: hold Option and click the Wi-Fi icon in the menu bar; your IP address shows up right in the list.
Your local IP from the Terminal
Open Terminal and run:
ipconfig getifaddr en0
On most Macs en0 is the primary interface (Wi-Fi on laptops). If you get nothing back, list every active interface:
ifconfig | grep "inet "
Ignore the 127.0.0.1 line: that is the loopback address, not your network address.
Public or local: which one do you need?
The local address (usually 192.168.x.x or 10.x.x.x) is for printers, file sharing or SSH between computers on the same network. The public address is for the outside world: your router shares it with every device through NAT.
The steps for the other systems: how to find your IP address on Windows and on Linux. For diagnosing your connection, see network connectivity testing.
Put this guide into practice on your own VPS
EU cloud servers, billed hourly, ready in minutes, with one-click installs for dozens of apps.
See pricingRelated tutorials
How to find your IP address on Linux: public and local
Find your public and local IP address on Linux: ip addr, hostname -I, GNOME Settings and the right way on a headless server.
Updated 10/19/2026Networking & DNSHow to find your IP address on Windows: public and local
Find your public IP address in a second and your local IP from Settings, Command Prompt or PowerShell, on Windows 10 and 11.
Updated 10/19/2026Networking & DNSEmail DNS records: SPF, DKIM and DMARC
Set up SPF, DKIM and DMARC so your emails reach the inbox, not spam.
Updated 10/19/2026