You need the IP address of your Mac when you set up a printer, fix a network problem or when someone helps you remotely. A Mac really has two addresses: a local IP address in your own network and a public address that your home network uses on the internet. This article explains where to find them, how to use ipconfig in Terminal and what an odd address such as 169.254 means.
Blue Apple repairs MacBooks in Amsterdam. If Wi-Fi does not work at all any more, read the section at the end as well.
Local and public: what is the difference?
- Local IP address: the address your router gives your Mac, usually something like 192.168.1.23 or 10.0.0.5. Other devices at home use this address to find your Mac.
- Public IP address: the address of your whole internet connection. All devices at home share it. Websites see this address.
The local address in System Settings
- Open System Settings and choose Network.
- Click Wi-Fi (or Ethernet if you use a cable).
- Click Details next to the network you are connected to.
- Choose TCP/IP. There you see the IP address, the subnet mask and the router address.
A faster way: hold the Option key and click the Wi-Fi icon in the menu bar. You immediately see the IP address and the router address. More about the Option key in the Option key explained.
With ipconfig in Terminal
Open Terminal through Spotlight (Command + space, type Terminal). Then type:
- ipconfig getifaddr en0 gives the IP address of the Wi-Fi connection on most MacBooks.
- If nothing comes back, try en1 or another number. A cable through an adapter often has a higher number.
- ifconfig shows all network connections in detail. Look for the line that starts with inet.
On Windows the command is just ipconfig; on a Mac that does not work the same way, which is why you add getifaddr and the name of the connection. New to Terminal? Read opening and using Terminal.
The public address
You will not find your public address in your Mac's settings, because it belongs to your router. Search for what is my ip in your browser, or look in your router's settings. If you use a VPN or iCloud Private Relay, websites see a different address from your router's.
An address that starts with 169.254
If your IP address starts with 169.254, your Mac did not get an address from the router and made one up itself. You usually have no internet then. What helps:
- Click Renew DHCP Lease under TCP/IP.
- Turn Wi-Fi off and on, or forget the network and reconnect.
- Restart the router.
- Do other devices work? Then the problem is the Mac. Read Wi-Fi drops out or does not work.
Private Wi-Fi address
The details of a Wi-Fi network also show Private Wi-Fi Address. That is about the hardware address (MAC address) of your Wi-Fi, not the IP address. Your Mac uses a different hardware address per network for privacy. If your router has a list of allowed devices, or your Mac keeps getting a different IP address, set that option to fixed or off for that network.
Setting a fixed IP address
If you need a fixed address for a printer or a server, you can choose manual under TCP/IP. It is better to link a fixed address to your Mac in the router; your Mac then keeps working automatically on other networks. A wrongly set manual address is a common reason why the internet suddenly stops working.
What we do at Blue Apple in Amsterdam
If your MacBook no longer finds any Wi-Fi network, or the connection keeps dropping while other devices work fine, the Wi-Fi chip or the antenna may be the cause. We test that and tell you what is needed. More on our page about MacBook repair in Amsterdam. For DNS problems, read clearing the DNS cache.
Frequently asked questions
Does my IP address change?
The local address can change when your router hands it out again. The public address sometimes changes at your provider.
Is it dangerous if someone knows my IP address?
The local address only works inside your own network. Every website you visit sees the public address; that is normal.
What is en0?
It is the name of a network connection on your Mac. On most MacBooks en0 is the Wi-Fi.