Your Mac has two IP addresses you might need, and which one matters depends on what you're doing

Your IP address is a number that identifies your Mac on a network — like a postal address for data. You actually have two: a local IP address (used only within your home or office network) and a public IP address (how the wider internet sees you). Most of the time, you need the local one. Finding it takes under a minute from System Settings, the Terminal, or your router's admin page.

The local IP address is what you'll use to connect to your printer, access shared files on another computer, or troubleshoot network problems. Your public IP address is what websites see when you visit them — your internet service provider assigns it, and it changes periodically unless you pay for a static one.

Key Takeaways

  • Your local IP address appears in System Settings under Network, and it starts with 192.168 or 10.0 on most home networks.
  • The Terminal command ifconfig shows both your local IP and other network details in seconds if you're comfortable with command line.
  • Your router's admin page lists every device connected to your network and its local IP, useful if you need to find another computer's address.
  • Your public IP address (what the internet sees) is different from your local one and changes based on your internet service provider.

Finding your local IP address in System Settings

Open System Settings and click Network in the sidebar. Select the connection you're using — either Wi-Fi if you're wireless or Ethernet if you're plugged in with a cable. Your local IP address appears next to "IP Address" in the details panel. It will look something like 192.168.1.105 or 10.0.0.50.

This is the fastest method if you only need the number once. The address stays the same until you restart your Mac or your router assigns a new one, which usually takes weeks or months on a home network.

Using Terminal to see your IP and network details

Open Terminal (search for it in Spotlight or find it in Applications > Utilities). Type ifconfig and press Enter. You'll see a wall of text for each network connection. Look for the line that says inet followed by a number — that's your local IP address. Ignore lines that say inet6 unless you specifically need IPv6.

Terminal also shows you other useful information: netmask tells you which other addresses are on your local network, and ether shows your Mac's hardware address (useful for some printer setups). If you're connected to multiple networks, you'll see multiple inet lines — use the one under the connection you're actually using.

Checking your router's device list

Your router keeps a list of every device connected to it, including their local IP addresses. Open a web browser and type your router's address — usually 192.168.1.1 or 192.168.0.1, though some routers use different numbers. You'll be asked to log in (check the sticker on your router for the default username and password, or look up your router model online).

Once logged in, look for a section called "Connected Devices," "Device List," or "DHCP Clients." Your Mac will appear with its name and local IP address. This method is especially useful if you need to find the IP address of another computer or device on your network, since they'll all be listed together.

Finding your public IP address

Your public IP address is what websites and online services see when you connect to them. To find it, open any web browser and search for "what is my IP" or visit a site like whatismyipaddress.com. The large number displayed is your public IP.

Your public IP is assigned by your internet service provider and changes periodically — sometimes weekly, sometimes monthly, depending on your provider and whether you've paid for a static IP. Unlike your local IP, you don't need it for most home network tasks. You only need it if you're setting up remote access to your Mac from outside your home network, or if a service asks for it specifically.

Why you might need each address

Use your local IP address when: connecting to a printer on your network, accessing shared files from another Mac, setting up network storage, or troubleshooting why a device won't connect to your network. This address only works within your home or office — it's not routable on the public internet.

Use your public IP address when: setting up remote access to your Mac from outside your home, checking if a website has blocked your connection, or reporting network abuse. Most everyday tasks don't require it. If someone asks for "your IP address" without specifying which one, they almost always mean your local IP.

What to do if your IP address keeps changing

Your router assigns local IP addresses automatically using DHCP (Dynamic Host Configuration Protocol). Most of the time this works fine — your Mac gets the same address for weeks or months. If your address changes frequently and you need it to stay the same (for example, to always reach a printer at the same number), you can assign a static local IP address.

The easiest way is to log into your router's admin page and look for "DHCP Reservation" or "Static DHCP." Enter your Mac's hardware address (the ether line from Terminal's ifconfig output) and the IP address you want to keep. Your router will always assign that same address to your Mac. Alternatively, you can set a static IP directly on your Mac in System Settings > Network > Wi-Fi (or Ethernet) > Details > TCP/IP, though router-level reservation is more reliable.

Frequently Asked Questions

Is my local IP address private and safe to share?

Your local IP address only works within your own network, so sharing it online is harmless — it tells someone nothing about your internet connection or location. Your public IP address is more sensitive; avoid posting it publicly since it can be used to identify your internet service provider and approximate location. Never share either address with someone you don't trust.

Why do I see multiple IP addresses when I run ifconfig?

Each network connection gets its own IP address. If you're connected to both Wi-Fi and Ethernet, you'll see two inet lines. You'll also see addresses for virtual connections like Docker or VPN software. Use the address under the connection you're actually using — usually the Wi-Fi or Ethernet section at the top of the output.

Can I change my public IP address?

Your public IP is assigned by your internet service provider. You can force a change by unplugging your modem for 10 to 30 minutes, though there's no may provide you'll get a different one — you might get the same address back. If you need a consistent public IP, contact your service provider about a static IP option, which usually costs extra per month.

What's the difference between IPv4 and IPv6?

IPv4 addresses look like 192.168.1.1 (four numbers separated by dots). IPv6 addresses look like 2001:0db8:85a3::8a2e:0370:7334 (letters and numbers with colons). Most home networks still use IPv4, but newer ones support both. Unless you specifically need IPv6, use the IPv4 address (the inet line in Terminal, not inet6).