What Command Prompt shows you about your IP address
Command Prompt is a text-based tool built into Windows that lets you see your device's IP address in seconds. When you type the right command, it displays both your local IP address (the one your router assigns to your device) and information about your network connection. This is the fastest way to find what you need without clicking through settings menus.
Your local IP address is what your home network uses to identify your device — it's different from the public IP address that websites see. Knowing your local IP is useful when you're setting up devices, troubleshooting connection problems, or configuring your router's security settings.
Key Takeaways
- Open Command Prompt by typing "cmd" into the Windows search box, then press Enter.
- Type ipconfig and press Enter to see your local IP address listed as "IPv4 Address" under your active network connection.
- Your IP address appears in the format 192.168.x.x or 10.x.x.x when you're on a home network.
- If you see multiple network connections listed, find the one marked "Ethernet" or "Wireless LAN Adapter" that shows you're actually connected.
Opening Command Prompt on Windows
The fastest way to open Command Prompt is through the Windows search box. Click the search icon in your taskbar (usually at the bottom left of your screen) and type "cmd" — the Command Prompt process appears at the top of the results.
Press Enter or click "Command Prompt" to open it. A black window with white text will appear. This is where you'll type your command. If you see a message asking whether you want to allow this app to make changes, click "Yes" — Command Prompt needs permission to run.
Running the ipconfig command
Type ipconfig into the Command Prompt window and press Enter. The window fills with information about every network connection on your device. Don't worry about most of it — you're looking for one specific line.
Scroll up in the window if needed and find the section labeled "Ethernet adapter" or "Wireless LAN adapter" — whichever one you're actually using to connect to your network. Under that heading, look for the line that says "IPv4 Address:" followed by a number. That number is your local IP address. It usually looks like 192.168.1.100 or 10.0.0.50.
Understanding what you're seeing
Command Prompt shows you several pieces of information for each network connection. The IPv4 Address is what you need — that's your device's address on your home network. The "Subnet Mask" and "Default Gateway" lines below it are part of how your network works, but you don't need to change them.
If you see multiple adapters listed (for example, both Ethernet and Wireless), only one will show an actual IP address. The others might say "Media disconnected" — that just means they're not currently in use. Focus on the adapter that's actually connected.
When you need more detailed information
If you want to see additional details about your network connection, type ipconfig /all instead. This shows your MAC address (a unique identifier for your device's network card), your DNS servers, and whether your IP address was assigned automatically or manually.
You'll rarely need this level of detail for basic network setup, but it's useful if you're troubleshooting a connection problem or configuring advanced router settings. The information appears in the same format — find your active network adapter and read the lines beneath it.
Checking if your IP address is static or changing
Run the ipconfig command, note your IPv4 Address, then wait a few minutes and run it again. If the number is the same both times, your router is assigning you a static local IP address — your device always gets the same address. If it changes, your router is using DHCP to assign addresses dynamically.
For most home networks, dynamic assignment is fine. But if you're setting up port forwarding or remote access through your router, a static local IP makes configuration easier because the address won't change on you. You can set a static IP in your router's settings or in your device's network settings.
Troubleshooting when the command doesn't work
If you type ipconfig and nothing happens, make sure you pressed Enter after typing the command. If you see an error message like "ipconfig is not recognized," you may have typed it incorrectly — check the spelling and try again.
If Command Prompt opens but closes when ready, right-click "Command Prompt" in the search results and choose "Run as administrator." Some network commands require administrator permission. If you still see errors, your network adapter may not be installed correctly — check Device Manager to see if your network adapter shows a warning symbol.
Frequently Asked Questions
Is my IP address the same as my public IP address?
No. Your local IP address (what Command Prompt shows) is only used inside your home network. Your public IP address is what websites see when you visit them — your internet provider assigns it, and it's different from your local address. You can find your public IP by searching "what is my IP" in a web browser.
Why do I see multiple network adapters in ipconfig?
Windows lists every network connection your device has, even ones you're not using. Ethernet, Wi-Fi, and virtual adapters all appear. Only the one you're actually connected to will show an IPv4 Address. The others show "Media disconnected" or no address at all — you can ignore them.
Can I change my local IP address from Command Prompt?
Command Prompt shows your IP address but doesn't change it directly. To assign a static local IP, you configure it in your network adapter settings or in your router's DHCP settings. Your router controls which addresses it hands out to devices on your network.
What if my IP address starts with 169.169?
That means your device couldn't reach your router's DHCP server to get a proper address. Check that your Wi-Fi or Ethernet cable is connected, restart your router, and run ipconfig again. If the problem continues, your network adapter may need troubleshooting.