Free fix

How to find your IP address on a Mac

Your Mac has two IP addresses that matter: the one your router gave it, and the one the internet sees. Here’s where to find each.

Short answer

For your Mac’s own (local) IP address, open System Settings → Wi-Fi, click Details next to the network you’re on and choose TCP/IP — or hold Option and click the Wi-Fi icon in the menu bar. macOS doesn’t show your public IP address anywhere; a website or a Terminal command can tell you. MacFixes’ Network in the menu bar keeps your IP address one click away, beside your live internet speed.

Free in MacFixes.

What macOS gives you

System Settings shows the local address: Wi-Fi → Details → TCP/IP, or Network → Ethernet → Details for a cable, with the router’s address beside it. Holding Option while you click the Wi-Fi icon in the menu bar shows them too, and ipconfig getifaddr en0 prints it in Terminal. Nothing built in shows your public IP address.

How MacFixes fixes it

  1. 1
    Turn on the fix
    Open MacFixes Settings → Everyday and turn on “Network in the menu bar” (or type its name into Search for a fix).
  2. 2
    Click the network readout
    Your IP address is in its panel, with how much you’ve moved and a speed test. The public address is looked up only when you click Show.
  3. 3
    Choose what the menu bar shows
    Download and upload speed, download only, or just an icon.
DownloadmacOS 14 Sonoma or later · free

Local and public: the two addresses

Your router gives every device at home its own local (private) IP address, usually something like 192.168.1.23, 10.0.0.5 or 172.16.0.8. Those ranges are set aside for private networks and reused in millions of homes, so they mean nothing outside yours. Out on the internet, everything behind your router shares one public address: the one websites, games and servers see when your Mac connects to them.

Which one you need depends on who is asking. Setting up a printer, sharing files with another Mac, or connecting to your Mac from another computer on the same network takes the local address. Adding your connection to a server’s allowlist, setting up remote access, or answering “what’s your IP?” from a support person usually means the public one.

You may also see a much longer address with colons in it, such as 2a02:…. That is IPv6, a newer kind of address many networks hand out alongside the familiar IPv4 one. A Mac can have both at once, and both are normal.

Find your Mac’s local IP address

System Settings. Open System Settings → Wi-Fi and click Details next to the network you’re connected to, then choose TCP/IP. The IP Address line is your Mac’s local address, and the Router line is your router’s. On a cable, the same details are under System Settings → Network → Ethernet → Details.

The Wi-Fi menu. Hold Option and click the Wi-Fi icon in the menu bar. The menu opens with extra details about the network you’re on, including your IP address and the router’s. It’s the quickest built-in look.

Terminal. Type ipconfig getifaddr en0 and press Return. On most MacBooks en0 is Wi-Fi; on a Mac with a built-in Ethernet port, en0 is usually the cable and Wi-Fi is en1. If one prints nothing, try the other. networksetup -listallhardwareports lists which name belongs to which connection.

Find your public IP address

macOS doesn’t display your public address, because your Mac doesn’t know it: it is your router’s address on the internet, and the Mac only learns it by asking something outside. The usual ways to ask:

A website. Search for “what is my IP” and the answer is at the top of most search engines, or open any of the many sites that show it.

Terminal. curl https://api.ipify.org prints your public IPv4 address and nothing else. Like a website, it sends a request to that service, which is how it learns the address.

Your router. Its admin page, usually reached by typing the router’s address into a browser, shows the address it was given by your internet provider, often labelled WAN or Internet.

Two things change what the internet sees. With a VPN on, sites see the VPN’s address instead of yours. With iCloud Private Relay on, websites you open in Safari see a relay address rather than your real one. If the router’s WAN address doesn’t match what websites report, your provider may be sharing one public address between several customers — common on mobile and some fibre connections, and the reason incoming connections to your router may not work.

Find your router’s IP address

Your router’s address is the Router line in the same TCP/IP details as your own, and in the Option-click Wi-Fi menu. In Terminal, route -n get default prints it on the gateway line. It’s usually the first address in your network’s range, such as 192.168.1.1 or 10.0.0.1, and typing it into a browser opens the router’s settings, where you’ll need its admin password.

When the address tells you something is wrong

It starts with 169.254. That is a self-assigned address: the Mac asked the router for one and got no answer, so it made one up. It means you’re connected to the Wi-Fi but have no working network. In the TCP/IP details, click Renew DHCP Lease. If that doesn’t help, turn Wi-Fi off and on, then restart the router.

There’s no IP address at all. The Mac isn’t connected to that network. Check you’re on the right Wi-Fi network and that it accepted the password.

It keeps changing. Routers hand addresses out on a lease, and a device can get a different one after a restart or a long sleep. That doesn’t matter for browsing, but it breaks anything set up with your old address — a printer, a file share. Most routers can reserve one address for your Mac; or, in the TCP/IP details, set Configure IPv4 to “Using DHCP with manual address” and type the address you want to keep.

If the Mac shows a normal address and the internet is simply slow, the address isn’t the problem. Watch the speed live and run a test: show internet speed in the menu bar.

Your IP address a click away with MacFixes

Every built-in route above is a few clicks or a command away, which is fine once and tiresome when you need the address often. MacFixes’ Network in the menu bar keeps your IP address in its panel: click the readout in the menu bar and it’s there, next to how much you’ve downloaded and uploaded and a button to test the connection.

Your public address is looked up with ipify.org, and only when you click Show, so nothing is sent until you ask. The speed test is Apple’s own networkQuality tool, built into macOS, and it can have a keyboard shortcut. The menu bar itself can show download and upload speed, download only, or just an icon.

One thing it doesn’t show is the Wi-Fi network’s name, because macOS only shares that with apps that have Location access. Network in the menu bar is a free fix, and it needs no permission. The same fix is behind internet speed in the menu bar, set up for that question.

Permissions, and turning it off

To stop using it, open MacFixes Settings → Everyday and use the switch on the “Network in the menu bar” row.

Questions

How do I find my IP address on a Mac?

Open System Settings → Wi-Fi, click Details next to your network and choose TCP/IP; the IP Address line is your Mac’s local address. Holding Option while you click the Wi-Fi icon in the menu bar shows it too.

How do I find my public IP address on a Mac?

macOS doesn’t show it. Search “what is my IP” in a browser, or type curl https://api.ipify.org in Terminal. A VPN or iCloud Private Relay changes what you’ll see.

What’s the difference between a local and a public IP address?

The local address is the one your router gives your Mac on your own network. The public address is your router’s address on the internet, shared by every device behind it.

Why does my Mac have a 169.254 IP address?

It didn’t get an address from the router and gave itself one. Click Renew DHCP Lease in the Wi-Fi TCP/IP details, or turn Wi-Fi off and on and restart the router.

How do I find my router’s IP address on a Mac?

It’s the Router line in System Settings → Wi-Fi → Details → TCP/IP. In Terminal, route -n get default shows it as the gateway.

Does MacFixes send my IP address anywhere?

Only when you ask. Your public address is looked up with ipify.org when you click Show, and not otherwise.

More fixes macOS doesn’t give you

One of 47 fixes and 10 apps in MacFixes. Every fix · Every app · Something else your Mac won’t do? Request it.

Find your IP address with MacFixes

MacFixes has 47 fixes for things macOS gets wrong or leaves out. Add only the ones you want. This one is free. macOS 14 Sonoma or later.

Download