How to Know Your IP Address: A Complete Guide

Whether you're troubleshooting a network issue, setting up a VPN, or configuring a router, knowing your IP address is a fundamental skill. The process differs depending on what type of IP address you need and which device you're using — so it helps to understand both concepts before diving into the steps.

What Is an IP Address?

An IP address (Internet Protocol address) is a numerical label assigned to every device connected to a network. It functions like a home address — it tells other devices and servers where to send data so it reaches the right destination.

There are two distinct types you'll encounter:

  • Public IP address — the address your internet service provider (ISP) assigns to your home or office network. This is what the outside internet sees when you browse, stream, or send data.
  • Private IP address — the address assigned to your specific device within your local network (home Wi-Fi, office LAN). Your router assigns these internally, and they're invisible to the public internet.

Understanding which one you need matters, because the method for finding each one is different.

How to Find Your Public IP Address 🌐

Your public IP is the same for every device on the same network — it belongs to your router, not your individual device.

The simplest method works on any device with a browser:

  1. Open any web browser
  2. Search for "what is my IP" on Google, Bing, or DuckDuckGo
  3. Your public IP address will appear at the top of the results

Alternatively, websites like ifconfig.me or icanhazip.com display your public IP directly when visited. These are plain-text responses — useful for developers or command-line users who query them directly.

Key things to know about your public IP:

  • It can change periodically unless your ISP assigns you a static IP
  • If you're using a VPN or proxy, the IP shown will belong to that service, not your ISP
  • IPv4 addresses look like 192.0.2.1; IPv6 addresses are longer, like 2001:0db8:85a3::8a2e:0370:7334

How to Find Your Private (Local) IP Address

Your private IP is device-specific and lives inside your local network. Here's how to find it by platform:

On Windows

  1. Press Windows + R, type cmd, and hit Enter
  2. In the Command Prompt, type ipconfig and press Enter
  3. Look for IPv4 Address under your active network adapter

Alternatively: Go to Settings → Network & Internet → Wi-Fi (or Ethernet) → Properties and scroll to find your IP address listed there.

On macOS

  1. Click the Apple menu → System Settings (or System Preferences on older versions)
  2. Select Network
  3. Click your active connection (Wi-Fi or Ethernet)
  4. Your IP address is displayed directly on that screen

Or open Terminal and type ifconfig | grep "inet " for a command-line view.

On iPhone or iPad

  1. Go to Settings → Wi-Fi
  2. Tap the (i) icon next to your connected network
  3. Your IP address appears under the IPv4 Address section

On Android

Steps vary slightly by manufacturer, but generally:

  1. Go to Settings → Network & Internet → Wi-Fi
  2. Tap your connected network
  3. Expand Advanced options if needed
  4. Your IP address will be listed there

On Linux

Open a terminal and type:

ip addr show 

or the older command:

ifconfig 

Look for inet followed by your local address under the active interface (commonly eth0 or wlan0).

Comparing Methods at a Glance 📋

MethodWhat It FindsBest For
Google "what is my IP"Public IPQuick checks, any device
ipconfig (Windows)Private IPNetwork troubleshooting
Network Settings (Mac/iOS/Android)Private IPNon-technical users
ip addr (Linux)Private IPDevelopers, sysadmins
VPN-connected browser searchVPN server IPVerifying VPN is active

Factors That Affect Which IP Address You See

Not all IP address lookups return the same result, and several variables determine what you're actually seeing:

  • VPN or proxy use: A VPN replaces your visible public IP with the server's address. If you're checking whether your VPN is working, this is exactly what you want to confirm.
  • Dynamic vs. static IPs: Most residential ISPs assign dynamic public IPs that can change when your router restarts or your lease period expires. Businesses often pay for static IPs that never change.
  • IPv4 vs. IPv6: Some ISPs and networks now issue IPv6 addresses. Many lookup tools show both if your network supports dual-stack configurations.
  • Network type: On a corporate or university network, your public IP may belong to an institutional proxy or firewall, not a direct ISP connection.
  • Device vs. router IP: Beginners often confuse the router's IP (your gateway, typically something like 192.168.1.1) with their device's IP. These are related but distinct.

When Knowing Your IP Actually Matters 🔧

Knowing your IP address becomes relevant in specific situations:

  • Port forwarding on a router requires knowing your device's private IP
  • Remote desktop or SSH access often requires your public IP
  • Geo-restriction debugging — checking whether a service sees your actual location or your VPN's
  • Network diagnostics — identifying IP conflicts that cause connectivity problems
  • Server hosting — directing domain names or firewall rules to the correct address

The method that works for you, and the type of IP address that's actually relevant, depends entirely on what you're trying to accomplish and how your network is set up.