To show your IP address in Windows, open Command Prompt and run ipconfig. This displays all network adapter configurations, including IPv4 and IPv6 addresses. No special tools or admin rights are required for basic viewing.
What You'll Need
- A Windows PC or laptop (Windows 10 or 11)
- Access to Command Prompt (no administrator privileges needed for standard use)
Step-by-Step
- Press Windows + R on your keyboard to open the Run dialog box.
- Type
cmdand press Enter. This launches the Command Prompt application. - In the Command Prompt window, type
ipconfigand press Enter. - Wait a moment for the output to appear. Scroll up or down using the scrollbar or mouse wheel to review the results.
- Locate the network adapter you're using (e.g., "Wireless LAN adapter Wi-Fi" or "Ethernet adapter Ethernet"). Under that section, look for IPv4 Address to see your current local IP address (e.g., 192.168.1.105). If IPv6 is configured, you'll also see an IPv6 Address.
Common Mistakes
Typing the command incorrectly, such as ipconfig /all when you only need the basic output, is not a mistake—but it does produce more data than needed. More frequent errors include:
- Running
ipconfigin PowerShell without realizing the command works identically in both tools. - Confusing the output: the IP address appears under the correct adapter section, but users sometimes scroll past or misread adapter names (e.g., looking at "Tunnel adapter" instead of "Wi-Fi").
- Assuming the loopback address (127.0.0.1) is your device's real IP—it only appears under "Loopback pseudo-interface" and is not usable for network communication.
- Expecting a public IP address:
ipconfigonly shows your local (private) IP assigned by your router, not the public IP seen by websites.
Tips
For a cleaner view, copy the output to Notepad by right-clicking in Command Prompt, selecting Edit > Mark, highlighting the text, pressing Enter, then pasting (Ctrl + V) into a text editor. To see more detailed info—including MAC address, subnet mask, default gateway, and DNS servers—run ipconfig /all. If you frequently check your IP, create a batch file (e.g., showip.bat) containing just ipconfig to double-click and open quickly. You can also pin Command Prompt to the taskbar for faster access. For remote troubleshooting, consider using PowerShell instead: Get-NetIPAddress offers structured, filterable output.
Troubleshooting
If ipconfig returns no output or error messages like "'ipconfig' is not recognized as an internal or external command," your system PATH variable may be corrupted. To fix this, open Command Prompt as administrator and run: set path=%path%;%systemroot%\system32, then retry the command. If that fails, restart your PC—many temporary environment issues resolve after reboot.
If the IP address appears as 169.254.x.x (an APIPA address), your device failed to obtain one from a DHCP server. Check that your router is powered on, the Ethernet cable is secure, or Wi-Fi is connected. Restart your router and try ipconfig /release followed by ipconfig /renew to request a new address. If you see multiple adapters (e.g., Ethernet and Wi-Fi), ensure the correct one is active: disable unused adapters in Network Connections ( accessible via Control Panel > Network and Sharing Center > Change adapter settings) to avoid confusion.
If Command Prompt closes immediately after running the command, you may have a script or alias overriding ipconfig. Run where ipconfig to verify its location—should be C:\Windows\System32\ipconfig.exe. If it points elsewhere, your system may be compromised; run a full antivirus scan and consider system restore.
Frequently Asked Questions
Does ipconfig show my public IP address?
No. ipconfig only shows your local (private) IP address assigned by your router. To find your public IP, visit a site like whatismyipaddress.com or run curl ifconfig.me in PowerShell (if installed).
Can I see my IP address without opening Command Prompt?
Yes. Go to Settings > Network & Internet > Wi-Fi (or Ethernet) > click your active connection > view "IPv4 address" under Properties. On older Windows versions, right-click the network icon in the taskbar, select Open Network & Internet settings, then Advanced sharing settings.
Why does my IP change frequently?
Your router likely uses DHCP with short lease times, so reconnecting or rebooting may assign a new local IP. To get a static local IP, configure a DHCP reservation in your router’s admin panel using your device’s MAC address.
Is there a way to show only the IP address, not all the extra details?
Use ipconfig without parameters for a concise list. For PowerShell users, (Get-NetIPAddress -AddressFamily IPv4).IPAddress returns just the IPv4 addresses. You can also pipe ipconfig output to findstr: ipconfig | findstr /R "[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*" to filter lines containing IP-like numbers.
Why do I see multiple IPv4 addresses?
This can happen if you have virtual machines (like VMware or Hyper-V), Bluetooth network adapters, or VPN software installed—each creates a virtual network interface. Check adapter names to identify non-physical connections. Disabling unused virtual adapters in Network Connections reduces clutter.
Does running ipconfig /all pose any security risk?
No. The command only displays local network configuration accessible to your user account. However, avoid sharing output screenshots publicly, as they may reveal your internal network structure (e.g., subnet masks, gateway IPs) useful to attackers in targeted scenarios.