What's My IP

Devices

How to Find Your IP Address on Mac

Devices · 4 min read · Updated November 16, 2026

Your IP:216.73.216.41Full details

Your Mac has a private IP on your local network and a public IP the internet sees. Here is how to find the private one; the public one is displayed at the top of our homepage. If you need your router's admin address instead, that is a different lookup.

Method 1: System Settings

Click the Apple menu, then System Settings, then Wi-Fi. Click Details next to your connected network and open the TCP/IP tab. Your IP address is shown there.

On older macOS versions the same screen lives under System Preferences, Network, Wi-Fi, Advanced, TCP/IP.

The TCP/IP tab shows three related numbers: your IP address, the subnet mask, and the router. The router line is the address of your router itself, handy when you need to open its settings page.

Method 2: Terminal

Open Terminal and run: ipconfig getifaddr en0. On most Macs en0 is Wi-Fi. If it returns nothing, try en1, or run networksetup -listallhardwareports to see your interfaces.

Two more commands are worth knowing. networksetup -getinfo Wi-Fi prints your address, subnet mask, and router together. And if you ever need your public IP from the command line, run curl ifconfig.me, which asks a web service to report the address it sees.

If your Mac connects by cable instead

A wired connection has its own address, separate from Wi-Fi. In System Settings, open Network, choose your Ethernet or USB adapter, and click Details, then TCP/IP, to see it.

In Terminal, wired adapters are usually en1 or higher, so ipconfig getifaddr en1 is the first one to try. If a Mac has both Wi-Fi and a cable connected, it holds two private addresses at once, one per connection, and uses the cable first by default.

If your Mac shows 169.254, or no address at all

An address starting with 169.254 is self-assigned. It means your Mac asked the router for an address and got no answer, so it invented a placeholder. The connection will not work until a real address arrives.

The built-in fix is on the same TCP/IP tab: click Renew DHCP Lease and wait a few seconds. If the placeholder stays, turn Wi-Fi off and back on, restart the router, and check that other devices can connect. When every device in the house has the same problem, the router or the internet line is at fault, not the Mac. Our release and renew guide covers the same fix on other systems.

Frequently asked questions

What is the Terminal command for IP on Mac?

Run ipconfig getifaddr en0 in Terminal. That prints your Wi-Fi IP address on one line.

Why do I have both IPv4 and IPv6 addresses?

Modern networks assign both. IPv4 is the classic format (192.168.1.5). [IPv6](/guides/what-is-ipv4-vs-ipv6) is the newer, longer format. Most home traffic still uses IPv4.

How do I renew my Mac's IP address?

Open System Settings, Wi-Fi, Details next to your network, TCP/IP tab, and click Renew DHCP Lease. Your Mac asks the router for an address again, though the router often hands back the same one.

Where do I find the IP on an older Mac?

On macOS versions that still use System Preferences, go to System Preferences, Network, pick Wi-Fi or Ethernet on the left, and the address is shown under the connection status. The Advanced button, then TCP/IP, shows the full details.

What is the difference between en0 and en1?

They are names for your Mac's network adapters. On most Macs en0 is Wi-Fi and en1 is a wired or adapter connection, but the order can vary by model. networksetup -listallhardwareports lists which is which on your machine.

Can I set a fixed IP address on my Mac?

Yes. On the TCP/IP tab, change Configure IPv4 to Manually and type the address, mask, and router. Pick an address inside your network's range but outside the router's automatic pool, or reserve the address in the router instead, which is the safer route. Our [static IP guide](/guides/what-is-a-static-ip-address) explains both approaches.

Related guides