Where to find your IP address on a Mac

Your Mac has an IP address whenever it connects to a network — whether that's your home Wi-Fi, a work network, or an Ethernet cable plugged directly in. The fastest way to see it is through System Settings. Open System Settings, click Network on the left sidebar, then select the network you're connected to (Wi-Fi or Ethernet). Your IP address appears next to "IPv4 Address" in the details panel.

If you're already connected and just need the number quickly, this is the method most people use. The address you see there is what other devices on your network use to find your Mac.

Key Takeaways

  • Your Mac's IP address appears in System Settings under Network, next to "IPv4 Address" for the connection you're currently using.
  • The Terminal app can show your IP address with a single command if you prefer the command line, and also displays additional network details.
  • Your public IP address (what websites see) is different from your local IP address (what your home network sees), and you can find both through different methods.
  • Every time you restart or rejoin a network, your local IP address may change unless your router assigns a static address.

Using the Terminal to check your IP address

If you're comfortable with the Terminal app, you can see your IP address without opening System Settings. Press Command + Space to open Spotlight, type "Terminal", and press Enter. Then type ifconfig and press Enter. You'll see a list of all your network connections with their IP addresses listed next to "inet".

The Terminal method shows more detail than System Settings — you can see IPv6 addresses, MAC addresses, and information about every network interface on your Mac at once. For most people checking their IP once, System Settings is simpler. For network troubleshooting or scripting, Terminal is more useful.

Finding your public IP address

The IP address you see in System Settings is your local IP address — it's only used on your home or office network. Your public IP address is what websites and internet services see when you connect to them, and it's assigned by your internet provider. These are different numbers.

To find your public IP address, open any web browser and search for "what is my IP" or visit a site like whatismyipaddress.com. The page will display your public IP address immediately. You can also type "my ip" directly into Google's search box and it will show your public address at the top of the results.

Why your IP address might change

Your local IP address can change each time you restart your Mac or rejoin a network, because your router assigns addresses automatically using DHCP (Dynamic Host Configuration Protocol). If you need your Mac to keep the same IP address — for example, to set up port forwarding or to make it easier for other devices to find — you can ask your router to assign a static IP address to your Mac's MAC address.

Your public IP address changes less often but can shift if your internet connection drops and reconnects, or if your internet provider reassigns it. Most home internet users don't need to worry about either changing, but it's worth knowing the difference if you're setting up network services or troubleshooting connection problems.

What to do if you can't see your IP address

If System Settings shows "Not Connected" or no IP address appears, your Mac isn't currently connected to a network. Check that Wi-Fi is turned on (click the Wi-Fi icon in the menu bar at the top right) or that your Ethernet cable is plugged in. Wait a few seconds for your Mac to connect, then check System Settings again.

If you're connected but still don't see an address, try disconnecting and reconnecting to the network. On Wi-Fi, click the Wi-Fi icon in the menu bar, select your network, and click "Disconnect". Then click the Wi-Fi icon again and select your network to reconnect. If the problem persists, restart your Mac and your router.

Understanding IPv4 and IPv6 addresses

Most home networks use IPv4 addresses, which look like four numbers separated by periods — for example, 192.168.1.5. This is the standard format you'll see in System Settings. IPv6 is a newer format that looks like a longer string of letters and numbers separated by colons, and it's becoming more common as the internet runs out of IPv4 addresses.

Your Mac may show both an IPv4 and an IPv6 address for the same network connection. Both work, and you don't need to choose between them — your Mac uses whichever one the service you're connecting to supports. For everyday use, the IPv4 address is what you'll need if you're setting up port forwarding, connecting to your Mac remotely, or troubleshooting network problems.

Frequently Asked Questions

Is my local IP address the same as my public IP address?

No. Your local IP address is only used on your home or office network and is assigned by your router. Your public IP address is assigned by your internet provider and is what websites see. They are different numbers, and you need different methods to find each one.

Can I change my IP address?

Your local IP address changes automatically when you restart or rejoin a network. To keep the same local address, you can set a static IP in your router settings by assigning it to your Mac's MAC address. Your public IP address is controlled by your internet provider and changes occasionally on its own, but you can't change it directly.

Why do I need to know my IP address?

You need your local IP address to set up port forwarding, connect to your Mac remotely, or troubleshoot network problems. You might need your public IP address to report to a service or to understand what information websites can see about your location. Most of the time, you don't need either one.

What's the difference between IPv4 and IPv6?

IPv4 addresses use four numbers separated by periods (like 192.168.1.5), while IPv6 uses a longer format with letters and numbers. IPv6 is newer and designed to handle more devices as the internet grows. Your Mac may show both, and both work — you don't need to choose between them.