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:
- Open any web browser
- Search for "what is my IP" on Google, Bing, or DuckDuckGo
- 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, like2001: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
- Press
Windows + R, typecmd, and hit Enter - In the Command Prompt, type
ipconfigand press Enter - 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
- Click the Apple menu → System Settings (or System Preferences on older versions)
- Select Network
- Click your active connection (Wi-Fi or Ethernet)
- 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
- Go to Settings → Wi-Fi
- Tap the (i) icon next to your connected network
- Your IP address appears under the IPv4 Address section
On Android
Steps vary slightly by manufacturer, but generally:
- Go to Settings → Network & Internet → Wi-Fi
- Tap your connected network
- Expand Advanced options if needed
- 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 📋
| Method | What It Finds | Best For |
|---|---|---|
| Google "what is my IP" | Public IP | Quick checks, any device |
ipconfig (Windows) | Private IP | Network troubleshooting |
| Network Settings (Mac/iOS/Android) | Private IP | Non-technical users |
ip addr (Linux) | Private IP | Developers, sysadmins |
| VPN-connected browser search | VPN server IP | Verifying 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.