← BACK TO LEARN / HOW-TO

Find your IP address on Windows, Mac, iPhone & Android

Find your public IP and local IP address on Windows, macOS, iPhone, Android and Linux in a few steps, and learn which one a game, router or support team needs.

By IPNixaPublished Updated

Show my public IP address

First decide which address you need

Most devices have at least two relevant addresses. The local address identifies the device inside your home or office network, usually something like 192.168.1.23. The public address is what websites and online services see, and it is often shared by every device behind the same router.

Use the public address when a service, game server or support agent asks for “your IP”. Use the local address when you configure a printer, port forwarding rule or another device on the same network. Opening IPNixa is the quickest way to see the public one.

Which IP address do I need?
TaskAddress to use
A website, game server or support team asks for your IPPublic address
Adding your connection to an allowlist or firewall rulePublic address (IPv4, and IPv6 if supported)
Setting up a printer, NAS or smart-home deviceLocal address
Creating a port forwarding rule on the routerLocal address of the device, public address to connect from outside
Checking whether a VPN worksPublic address, before and after connecting

Windows

Windows shows the local address in Settings and in the command line.

  1. Open Settings and choose Network & internet.
  2. Select Wi-Fi (then Hardware properties) or Ethernet. The IPv4 address and any IPv6 addresses are listed there.
  3. Alternatively, press the Windows key, type cmd, open Command Prompt and run ipconfig. Look for “IPv4 Address” under the active adapter. “Default Gateway” is your router’s local address.

macOS

Recent versions of macOS show addresses in System Settings.

  1. Open the Apple menu and choose System Settings.
  2. Select Wi-Fi (or Network for a cable connection), then Details next to the connected network.
  3. Open TCP/IP. The IP address field is your local IPv4 address; the router field is your gateway.
  4. In Terminal, ipconfig getifaddr en0 prints the local IPv4 address of the main interface on many Macs; the interface name can differ on some models.

iPhone and iPad

On Wi-Fi, iOS and iPadOS show the address assigned by the network.

  1. Open Settings and tap Wi-Fi.
  2. Tap the information button next to the connected network.
  3. Read IP Address under IPv4 Address. Router shows your gateway.
  4. On mobile data the carrier assigns the address and the phone does not always display it; open IPNixa to see the public address in use.

Android

Menu names and available fields vary by manufacturer and Android version. Start with the connected Wi-Fi network’s details; if the address is absent, consult the device’s network help rather than assuming a missing address means no connectivity.

  1. Open Settings, then Network & internet (or Connections on Samsung phones).
  2. Tap Internet or Wi-Fi, then the gear icon next to the connected network.
  3. Look for IP address, sometimes under Advanced or Network details.
  4. Some phones also show it under About phone → Status. The public address is the one shown by an IP lookup.

Linux

On Linux, the command ip address lists every interface and its addresses; hostname -I prints only the addresses. Desktop environments also show them in the network settings panel.

Your router and the public address

Worked example: your laptop is 192.168.1.23, the router WAN is 192.168.0.2 and a fresh public IPv4 check shows 203.0.113.42. The laptop address is local; the private WAN suggests an upstream router or translation layer. It does not locate that layer or prove provider CGNAT. Check the active WAN interface, any VPN and the upstream device before changing router settings. The public example is reserved for documentation.

  1. Find the router’s local address: it is the Default Gateway in ipconfig, or the Router field on Mac, iPhone and Android. Common values are 192.168.0.1 and 192.168.1.1.
  2. Open that address in a browser and sign in with the router’s administrator password, often printed on a label on the router.
  3. Open the status, internet or WAN page and note the IPv4 address.
  4. Compare fresh IPv4 results taken at the same time. A match is consistent with a public WAN; a mismatch needs investigation. Neither outcome tests a port or proves the provider shares your address.
How a home router shares one public IP addressYOUR LOCAL NETWORK · PRIVATE ADDRESSESLaptop192.168.1.10Phone192.168.1.11TV192.168.1.12Home router · NATLAN 192.168.1.1WAN 203.0.113.42one public addressInternetWebsite or online servicesees 203.0.113.42
Network address translation: every device at home has its own private address, but websites only see the router’s public address. The addresses shown are reserved documentation examples.

Frequently asked questions

Why does my phone show 192.168.x.x while IPNixa shows something else?

Your phone shows its local address inside your Wi-Fi network. Websites see the router’s public address, which is what an IP lookup reports. Both are correct; they are different addresses with different jobs.

Why do ipconfig and an IP lookup show different addresses?

ipconfig lists the addresses assigned to your computer, which are usually private. The lookup shows the public address after your router and provider have translated the traffic.

Does my IP address change when I restart my device?

Your local address may change if the router assigns a different one, and your public address may change if the router itself reconnects to the provider. Restarting a phone or laptop alone rarely changes the public address.

Can I find someone else’s IP address?

This tool shows the connection making the request; it is not a people-search service. Shared gateways, VPNs and changing addresses mean that an IP lookup cannot identify a person or disclose another service’s private account records.

Sources and further reading