netutilus

Public vs Private IP Addresses

A private IP address, such as 192.168.1.24 or 10.0.0.5, is the one your router gives your Mac inside your network; the public address is the one your provider gives the router, and every device in your home shares it on the internet through NAT. The private ranges (192.168.x.x, 10.x.x.x and 172.16 to 172.31.x.x) mean nothing outside your network, which is why every home can reuse them. Netutilus for macOS shows both: the private address in Network Monitor, and the public one, with its country, in the menu bar.

Updated

Download on the Mac App Store ↗

free to download · macOS 14.6 or later

Every device on a network has an IP address, the number other devices send to. There are two kinds that matter day to day.

Private and public

  • Private addresses exist only inside your network, such as 192.168.1.24, 10.0.0.5 or 172.16.0.8. Your router hands them out, and every home uses the same ranges, so they mean nothing outside it. Network Monitor and LAN Scanner show them.
  • The public address is the one your provider gives your router. All the devices in your home share it on the internet, the router keeping track of which reply belongs to whom (that’s NAT). The menu bar item and GeoIP show it.

A VPN replaces your public address with its own, which is how it hides you. See Is my VPN working?

IPv4 and IPv6

IPv4 addresses are four numbers, such as 93.184.216.34. There aren’t enough of them for every device, which is why homes share one. IPv6 addresses are longer, such as 2606:2800:220:1::248, and plentiful enough that each device can have its own. Many networks run both. Plenty still run only IPv4, and that’s fine.

Addresses that tell you something

  • 127.0.0.1 is the Mac itself.
  • 169.254.x.x means the Mac asked for an address and the router never answered. Restarting the router usually fixes it.
  • 100.64.x.x to 100.127.x.x as your public address means your provider shares one public address among many customers (carrier-grade NAT).

On a Mac, in Terminal

ipconfig getifaddr en0 prints the Mac’s private address on en0, which is the Wi-Fi on a MacBook. If it prints nothing, networksetup -listallhardwareports shows which device is the Wi-Fi and which the Ethernet. For your public address and its country from Terminal, see the commands on the GeoIP page.

Run it on your own network

Netutilus puts every network tool in one app. Free to download; Pro is a one-time purchase, never a subscription.

Download on the Mac App Store ↗

Articles

See also

  • Subnets and CIDRHow a prefix like /24 says which addresses belong to one network.
  • Network MonitorWatches your Mac's network connection live, logs every change, and shows the routing table.
  • GeoIPShows roughly where an IP address is, and which provider it belongs to.
  • Is My VPN Working?Check that a VPN hides your address, and get warned when it drops or leaks.
  • Who Is on My Network?List every device on your network, find out what each one is, and get notified when a new one joins.