Your Mac has two IP addresses, and you probably need the local one

Your Mac's IP address is a number that identifies it on your home network — something like 192.168.1.5. You need it when you're setting up a router, troubleshooting a connection problem, or giving someone else permission to access your computer remotely. The quickest way to find it is through System Settings, and it takes about 30 seconds.

Your Mac actually has two IP addresses. The local IP address (or private IP) is the one your home network uses to talk to your computer — this is what you need most of the time. The public IP address is what the internet sees when you browse the web, and it belongs to your internet provider, not your Mac. This guide covers both.

Key Takeaways

  • Open System Settings, click Network on the left, then Wi-Fi or Ethernet, and your local IP address appears next to "IPv4 Address".
  • Your local IP address starts with 192.168 or 10.0 and changes only when you restart your Mac or your router reassigns it.
  • To find your public IP address, search "what is my IP" in any web browser — it shows your internet provider's address, not your Mac's.
  • Write down your local IP address if you need it for router setup or remote access, because it may change if your router restarts.

Finding your local IP address through System Settings

Open System Settings (the gear icon in your dock, or press Command-comma on your keyboard). On the left side, click Network. You'll see a list of connection types — click whichever one your Mac is using right now. If you're on Wi-Fi, click Wi-Fi. If you're plugged into ethernet, click Ethernet.

On the right side of the window, you'll see connection details. Look for the line that says IPv4 Address. The number next to it — something like 192.168.1.42 — is your local IP address. That's the address your router uses to find your Mac on your home network.

If you don't see an IPv4 Address line, your Mac isn't connected to the network yet. Check that Wi-Fi is turned on (click the Wi-Fi icon in the top-right corner) or that your ethernet cable is plugged in firmly on both ends.

Finding your local IP address from the Terminal

If System Settings isn't working or you prefer the command line, you can find your IP address in Terminal. Press Command-Space to open Spotlight search, type terminal, and press Enter.

In the Terminal window, type this exactly: ifconfig | grep "inet " | grep -v 127.0.0.1 and press Enter. You'll see one or more lines with "inet" followed by a number. The number that starts with 192.168 or 10.0 is your local IP address. Ignore any line that starts with 127.0.0.1 — that's your Mac talking to itself.

Terminal is faster once you know the command, but System Settings is easier if you're not comfortable typing commands. Both give you the same answer.

Understanding what your IP address means

Your local IP address is divided into four sections separated by dots. On most home networks, the first three sections are the same for every device — 192.168.1 or 10.0.0 — and only the last section changes. That last number is what your router uses to tell your Mac apart from your phone, your printer, and your smart speaker.

Your router assigns these addresses automatically, usually in the order devices connect. If your Mac gets 192.168.1.42 today, it might get 192.168.1.43 tomorrow if your router restarts or if you restart your Mac. For most everyday tasks, this doesn't matter. But if you're setting up port forwarding on your router or giving someone remote access to your Mac, you may need to set a static IP address — one that doesn't change — so the router always knows where to find you.

Finding your public IP address

Your public IP address is the one the internet sees. It belongs to your internet provider, not to your Mac, and every device in your home shares it. To find it, open any web browser and search for what is my IP. The first result will show a number like 203.0.113.45. That's your public IP address.

You rarely need your public IP address for home network setup. It's useful if someone outside your home needs to connect to your Mac remotely, or if you're troubleshooting a connection problem with your internet provider. Your public IP address changes whenever your internet provider decides to reassign it — sometimes weekly, sometimes yearly, depending on your provider's policy.

What to do if your IP address keeps changing

If you're setting up your router and your Mac's IP address changes between restarts, your router is using DHCP — the automatic assignment system. This is normal and fine for most people. But if you need the address to stay the same — for example, to set up port forwarding for a game server or remote access — you can assign a static IP address.

The easiest way is to tell your router to always give your Mac the same address. Log into your router's settings (usually by typing 192.168.1.1 or 10.0.0.1 into a web browser), find the DHCP or IP Reservation section, and add your Mac's current address to the list. The exact steps depend on your router model, so check your router's manual or the manufacturer's website for instructions.

If you can't access your router's settings, you can set a static IP address on your Mac itself. Open System Settings, go to Network, click your connection, then click Details and look for TCP/IP settings. But this is more complicated and more error-prone — having your router do it is simpler.

Frequently Asked Questions

Why does my IP address look different than my friend's?

Your router decides what IP addresses to hand out, and different routers use different ranges. Some start at 192.168.1.1, others at 10.0.0.1, and some at 172.16.0.1. All are correct — they just mean your routers are configured differently. As long as your address starts with 192.168, 10.0, or 172.16, it's a local address.

Is my IP address private information I should hide?

Your local IP address is only useful on your home network — it's not private information. Your public IP address is more sensitive because it identifies your location to websites, but it's not a password or account number. Don't share it casually, but it's not a security risk on its own.

What if I see multiple IP addresses when I search?

If you have both Wi-Fi and ethernet plugged in, your Mac might have two local IP addresses — one for each connection. Use the one for whichever connection you're actually using. If you're confused, unplug the ethernet cable and check System Settings again — you'll see only the Wi-Fi address.

Can I change my IP address myself?

You can set a static IP address on your Mac or ask your router to assign you a specific one, but you can't change your public IP address directly — that's controlled by your internet provider. If you need a different public IP address for privacy reasons, you'd need to use a VPN service, which is a separate tool.