Every device connected to a network relies on a unique numerical label to communicate and route data. This identifier, known as an Internet Protocol address, serves as the primary address for sending and receiving information across local and global networks. Whether you're troubleshooting a sudden loss of internet connectivity, configuring a local printer, or setting up port forwarding for a game server, finding your IP address is a fundamental technical skill.
An IP address splits into two distinct categories: your private IP address, which your home or office router assigns to identify your device internally, and your public IP address, which represents your entire network to the outside world. Finding your private address requires checking your device settings or terminal, while finding your public address takes a quick query via an external web service or IANA. Let's walk through the exact steps to locate both on every major operating system.
Understanding Private vs. Public IP Addresses
Before digging into terminal commands and settings menus, it helps to know what you're looking at. Your private IP address usually starts with specific prefixes like 192.168.x.x or 10.x.x.x. These addresses are invisible to the wider internet. They exist solely so your router can tell the difference between your smart TV, your phone, and your laptop.
Your public IP address, on the other hand, is assigned by your Internet Service Provider (ISP). It's the singular face your home network presents to websites, streaming services, and online games. Because most residential connections use dynamic allocation, your public address can change periodically when your router reboots or your ISP refreshes your lease.
How to Find Your Private IP Address on Windows
Windows gives you several ways to inspect your network configuration, ranging from quick command-line utilities to graphical system menus.
Using Command Prompt or PowerShell
The fastest way to check your details on Windows is through the command line:
- Press the Windows key + R to open the Run dialog box.
- Type
cmdand hit Enter to open the Command Prompt. - Type
ipconfigand press Enter. - Locate your active network adapter—labeled as Ethernet adapter or Wireless LAN adapter—and look for the line reading IPv4 Address.
If you prefer PowerShell, open the Start menu, type powershell, open the application, and run the command Get-NetIPConfiguration. You'll find your local address listed right under the active interface properties.
Using Windows Settings
If you prefer using the graphical user interface:
- Open the Start menu and click Settings.
- Go to Network & Internet and select Wi-Fi or Ethernet, depending on your connection.
- Click on your active network properties or scroll down to find the IPv4 address listed clearly alongside your subnet mask and default gateway.
How to Find Your Private IP Address on macOS and Linux
Unix-based operating systems offer robust terminal tools that retrieve network configurations in seconds.
Using the Terminal on macOS
- Open Spotlight by pressing Command + Space, type
Terminal, and press Enter. - Type
ifconfigand press Enter. - Scroll through the output to find your active interface—typically
en0for Wi-Fi oren1for Ethernet—and look for theinetvalue next to it.
Alternatively, you can open System Settings, click Network, select your active connection, and click Details to see your IPv4 address right at the top.
Finding Your Address on Linux Distributions
Most modern Linux distributions support the ip utility out of the box:
- Open your terminal emulator.
- Run the command
ip addr show. - Locate your active interface (such as
wlan0oreth0) and read the numeric string following theinetlabel before the slash.
How to Find Your Private IP Address on Mobile Devices
Mobile operating systems streamline network details behind a few layers of tap-friendly menus.
Finding Your IP on iOS (iPhone and iPad)
- Open the Settings app on your device.
- Tap Wi-Fi and make sure you're connected to your local network.
- Tap the small blue i icon next to your connected network name.
- Your device's local identifier appears directly next to the IP Address field.
Finding Your IP on Android
- Open your phone's Settings app.
- Tap Connections or Network & internet, then select Wi-Fi.
- Tap the settings gear or network name next to your active Wi-Fi connection.
- Look for the IP address entry listed under advanced network details.
How to Find Your Public IP Address
Because your public IP address exists outside your local device, local commands won't reveal it. Instead, you need to ask an external server what it sees when your traffic arrives.
The most reliable approach is visiting a dedicated networking utility or search provider. You can check Cloudflare's diagnostic tool or simply type "What is my IP" into a major search engine. The search page will instantly display your public IPv4 or IPv6 address at the top of the results.
If you use a command-line environment on a server or desktop, you can query an external lookup API directly using curl:
curl ifconfig.me
This command queries a lightweight external service and prints your public address directly into your terminal window.
Common Mistakes and Troubleshooting
When looking for your IP address, a few common pitfalls can cause confusion:
- Checking the wrong adapter: If your computer has both an active Wi-Fi card and a plugged-in Ethernet cable, make sure you're reading the address for the interface you're actually using to access the internet.
- Confusing local and public addresses: Giving a friend your local
192.168.x.xaddress won't let them connect to your home server because private addresses are not routable across the public internet. Always use your public address for external connections. - VPN interference: If you run a Virtual Private Network, tools that check your public IP will display the address of the VPN exit node rather than your actual ISP-assigned address. Turn off your VPN temporarily if you need to check your true home public identifier.
Frequently Asked Questions
Can my IP address reveal my exact home address?
No. While your public IP address gives away your general geographic region and your Internet Service Provider, it only pinpoints your city or neighborhood at best. It cannot expose your street address, apartment number, or personal identity without a subpoena served to your ISP.
What is the difference between IPv4 and IPv6?
IPv4 uses a 32-bit numeric format broken into four chunks (like 192.168.1.1), which limits the total number of available addresses. IPv6 uses a 128-bit alphanumeric format (like 2001:db8::) designed to ensure the internet never runs out of unique identifiers as billions of new smart devices come online.
Why does my local IP address change occasionally?
Most home routers assign local addresses dynamically using the DHCP (Dynamic Host Configuration Protocol). When your lease expires or your router reboots, it might assign your laptop or phone a slightly different number within the local subnet. If you need a device to keep the exact same local address permanently—such as a network-attached storage drive—you can configure a static IP inside your router settings.