How to find your Mac IP address

Find your Mac IP address in System Settings or Terminal and understand Wi-Fi, Ethernet, VPN and Private Relay results.

Published:

Find your Mac IP address without changing settings

To see the public address used by this browser, open the IP checker on the Mac. To find the local Mac IP address, open the Apple menu, choose System Settings, select Network, open the connected service, then choose Details and TCP/IP. Read the existing values. Finding an address does not require a network reset, a new application or a change from DHCP to manual configuration.

The Mac IP address shown in settings and the one seen by a website answer different questions. Your local value belongs to an interface such as Wi-Fi or Ethernet. The public Mac IP address observation describes the request arriving at a remote service, potentially after translation, a VPN or a relay. Decide whether you are setting up a local device or troubleshooting an internet connection before copying either value.

Check the active service in System Settings

In current macOS releases, choose Apple menu, System Settings, then Network. Select the active connection, open Details and choose TCP/IP. This path is documented in Apple's DHCP and manual addressing guide. Read the address, subnet information and router values without editing them. Older releases may use System Preferences rather than System Settings.

For a wireless connection, the network's Wi-Fi details also display an IP address and router information; see Apple's Wi-Fi settings reference. Make sure the address belongs to the network currently connected. A saved network you used yesterday can have different settings and does not describe today's route.

If an Ethernet dock and Wi-Fi are both connected, inspect each service separately. An address on the wired interface does not establish that every application uses it. Routing and tunnel configuration still matter. Keep the service name beside the copied address so another person can reproduce your observation instead of guessing which adapter you inspected.

Inspect interfaces in Terminal

For an interface-level view, open Terminal and run:

ifconfig

This read-only command lists interfaces and their addresses. Look for inet for IPv4 and inet6 for IPv6. The full output can include loopback, tunnels and other interfaces in addition to physical hardware. Do not assume the first number printed is the Mac IP address you need. Match the interface to the connection you are investigating.

To identify hardware interface names, run networksetup -listallhardwareports. After matching the desired hardware port to its Device name, inspect that interface with a command such as ifconfig en0. The name en0 is an example, not a guarantee that Wi-Fi uses that name on every Mac. Your installed man ifconfig and man networksetup pages document the commands available on your macOS version.

Another common query is ipconfig getifaddr en0, which asks for the IPv4 address associated with that interface. Replace en0 with the actual device name. An empty result does not prove that the Mac is offline: the selected interface may not have IPv4, or you may have selected the wrong one. Check the wider interface view before drawing a conclusion about your address.

Distinguish the computer from the router

Suppose a local network assigns the computer 192.168.20.30 and shows a router at 192.168.20.1. In this example, the address identifies the computer within that LAN. The router value identifies the next hop used to reach other networks. Copying the gateway into a form asking for the computer's local address refers to a different device.

Neither example tells you which public address a remote server sees. Home IPv4 networks commonly translate traffic at a router, and a provider may translate it again. This is why the public versus private explanation belongs beside any Mac IP address check. Local and public observations can disagree without either observation being wrong.

Read IPv6 alongside IPv4

IPv6 uses colon-separated notation and can assign several addresses to one interface. You might see link-local, stable global and temporary global values together. A suffix such as %en0 identifies a local interface scope in contexts that require it; it is not an extra globally routable part of an IPv6 address. Keep scope information when discussing a local connection.

A globally scoped address does not by itself demonstrate working internet access. The interface also needs a usable route, and the destination must be reachable. Conversely, a website showing IPv4 does not prove that IPv6 is absent. The IPv6 test observes each available protocol separately and reports failed or unavailable requests without declaring the entire network broken.

Why Safari can show a different exit

Safari traffic can pass through iCloud Private Relay when the feature is active and available. A destination then observes a relay address for the covered traffic. Apple describes its operation and scope in About iCloud Private Relay. It should not be interpreted as a universal VPN for every application or every protocol.

As a result, comparing Safari with a command-line program may produce different public values. That does not automatically mean the address in System Settings is stale. The tests may use different paths. Record the application, relay state and address family when comparing them. Do not disable a privacy feature merely to make unrelated observations display the same number.

Work VPNs and routing

A VPN can introduce another interface and another visible internet exit. A work network may route only selected destinations through its tunnel. In that arrangement, there is no single Mac IP address that describes every application connection. Start with the destination that is failing and the company's intended access path. A browser's successful public check is only one observation.

When support asks for an address, clarify whether it needs the local Wi-Fi value, the tunnel interface value or the public source in its own logs. Those distinctions are especially useful for remote access and allowlists. Change VPN settings only when appropriate for that network, and keep a record of the original state so comparisons remain meaningful.

A missing or unexpected assignment

If the selected service has no expected address, confirm that it is connected and that you are inspecting the right interface. A disconnected dock is not evidence that wireless connectivity failed. If an IPv4 value begins with 169.254, it is link-local. On a network that normally supplies DHCP configuration, investigate assignment and the local link before assuming an internet provider outage.

A private address can also change after joining another network or receiving a different lease. The same-looking private value on two unrelated networks does not mean the devices are the same. If addresses keep changing during an actual fault, record the times and connection events. Repeatedly rebooting equipment first can erase the pattern you need to understand.

Use the result for the correct task

For a local printer or file share, use the Mac IP address and network relevant to that local service. For an external support allowlist, provide the public source that the destination actually sees. An address alone cannot show that a service is listening, a firewall permits it or the remote client has a route. Test those layers separately when a connection still fails.

Share the smallest useful report: address, family, interface, observation method, time and symptom. Remove unrelated internal names from screenshots you intend to post publicly. Once you have recorded the local address, compare it with the public browser result and follow the explanation matching your situation. You can complete this entire information-gathering step without altering a working connection.

How to find your Mac IP address — common questions

Why does ipconfig getifaddr en0 return no value on my Mac?

The chosen interface may not have IPv4, or en0 may not be the interface you intended. Match hardware ports to device names and inspect the wider interface view before diagnosing a lost connection.

Can I assume en0 always means Wi-Fi?

No. Treat it as an example until the hardware-port listing confirms the mapping on that machine. Record the actual service and device name so another person can reproduce the same observation.

What do inet and inet6 mean in ifconfig output?

They distinguish IPv4 and IPv6 interface values. Keep the interface name and scope with each result. A populated field reports configuration rather than proving that every internet destination is reachable through it.

Why can Safari and Terminal show different public sources?

Safari may use Private Relay for covered traffic, while another program uses a different path. A VPN can add further routing choices. Record the application and feature state before treating the difference as stale local settings.

Does the Router value in TCP/IP belong to the Mac itself?

It identifies the gateway rather than the computer's interface. A support request for the local device address and a request for the router's management path therefore need different fields from the same panel.

Is selecting Manual required to view the local assignment?

No. Read the existing TCP/IP details without editing the assignment mode. An arbitrary manual value can conflict with another device or remove the intended route; inspection should leave the working configuration intact.

What does a percent-en0 suffix mean on a local IPv6 value?

It supplies interface scope in contexts that need a local zone identifier. It is not an additional globally routable part of the address. Preserve the local context without assuming every public input accepts that suffix.

Which Mac connection should I inspect with Wi-Fi and Ethernet both active?

Inspect each service relevant to the application and route you are investigating. Keep the service name beside the copied value. One populated wired interface does not establish that every application uses that connection.