← BACK TO LEARN / HOW-TO

How to find your IP address on any device

Find your public IP and your local network address on Windows, macOS, iPhone, Android and Linux, and learn which one you need.

By IPNIXAPublished Updated

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 vary by manufacturer, but the address is always in the details of the connected Wi-Fi network.

  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

Your router’s administration page shows the address it received from your provider, often labeled WAN or Internet address. If that address differs from the one IPNIXA shows, another layer of address translation sits between you and the internet — see the guide on carrier-grade NAT.

  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 it with the IPv4 address on IPNIXA. If they match, your router holds the public address; if not, your provider shares addresses between customers.
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?

Not with IPNIXA; it only shows the address of the connection you are using. Services you use see other people’s addresses in their own logs, and those records are protected by privacy law and the service’s own policies.

Sources and further reading