To know your IP address in Windows 10, open Command Prompt and run the command ipconfig. This displays your device's local IP address assigned by your router, such as 192.168.1.105. For your public IP, visit a site like whatismyip.com.
Your IP address is a unique identifier assigned to your device on a network. In Windows 10, you can find both your local (private) IP and public IP through built-in tools or online services. The local IP is used within your home or office network, while the public IP is visible to websites and services on the internet.
Most users need their local IP to troubleshoot Wi-Fi issues, set up port forwarding, or connect devices via remote access. Public IP addresses are useful when configuring servers, diagnosing connectivity problems, or verifying your location-based internet identity.
When you connect to a network, your Windows 10 device receives a local IP address from your router via DHCP. This address stays consistent during your session unless the router assigns a new one. It's typically in the format 192.168.x.x or 10.x.x.x.
Your public IP address is assigned by your Internet Service Provider (ISP). It changes periodically unless you have a static public IP. This address appears when you browse the web and is used to route traffic to your network from external sources.
For example, if you're setting up a game server or hosting a website from home, knowing your public IP lets you direct traffic to your machine. But most users don't need to share this publicly due to security risks.
Use the Command Prompt method for quick access. Press Win+R, type cmd, and press Enter. Run ipconfig and look for "IPv4 Address" under your active network adapter (like Ethernet or Wi-Fi).
Example output:
Wireless LAN adapter Wi-Fi:
Connection-specific DNS Suffix . :
IPv4 Address. . . . . . . . . . : 192.168.1.105
Subnet Mask . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . : 192.168.1.1
This shows your local IP is 192.168.1.105. The default gateway (router) is 192.168.1.1. You can use this info to log into your router's admin page.
Open Settings > Network & Internet > Status. Click on your active connection (Wi-Fi or Ethernet). Scroll down and click "Properties." Your IPv4 address appears under "IP settings."
PowerShell offers more control. Open PowerShell as administrator and run:
Get-NetIPAddress -AddressFamily IPv4 | Select-Object InterfaceAlias, IPAddress
This returns a list of all IPv4 addresses on your system. It's especially useful if you have multiple network adapters.
Using the Settings app gives a visual confirmation. It's ideal for users unfamiliar with command-line tools. However, it doesn't show subnet mask or gateway details-those require ipconfig.
Many confuse local IP with public IP. A local IP like 192.168.1.105 is only valid inside your network. It won't work to reach your computer from the internet unless you configure port forwarding.
Another error: assuming your public IP is static. Most residential ISPs assign changing public IPs. Your IP may change after a router restart. Use a service like whatismyip.com to check your current public IP.
Some think the MAC address is the IP. They're different. The MAC address is a hardware identifier burned into your network card. The IP is a logical address managed by software.
| Method | Speed | Detail level | Best for |
|---|---|---|---|
Command Prompt (ipconfig) |
Fast (under 1 second) | High (shows gateway, subnet) | Troubleshooting, scripting |
| Settings app | Medium (10-15 seconds) | Moderate (only IP and prefix) | Visual users, beginners |
| PowerShell | Fast (1-2 seconds) | High (scriptable, exportable) | Admins, automation |
| Online lookup | Fast (depends on internet) | Low (only public IP) | Quick verification |
Each method serves a purpose. Use ipconfig for full network diagnostics. Use the Settings app for simplicity. Use PowerShell for batch tasks. Use online tools to confirm your public IP.
I once helped a user who couldn't print from their laptop. The printer was on the same network but wouldn't respond. Using ipconfig, I confirmed the laptop had an IP like 192.168.1.105. The printer showed 192.168.1.110. Both were on the same subnet, so the issue wasn't IP conflict.
But the printer's IP was static, while the laptop's was changing. After checking the router's DHCP range, I found the printer's IP was outside the assigned pool. I changed the printer's IP to 192.168.1.115 and restarted both devices. Printing resumed immediately.
This shows that knowing your IP address isn't just about seeing numbers-it's about understanding network behavior and resolving real issues.
There is no single "correct" way to know your IP address in Windows 10. The best method depends on your goal. Use ipconfig for detailed troubleshooting. Use the Settings app for quick checks. Use online tools to verify your public IP.
Always distinguish between local and public IP addresses. Misusing them can lead to configuration errors or security vulnerabilities. For example, entering your public IP in a local network setup will fail.