Learning how to find ip using command prompt is a useful skill for any Windows user, because your own computer’s IP address is often the first detail you need when setting up a home network, fixing a connection problem, or checking a printer or router setting. An IP address is simply a number that identifies a device on a network, much like a house number identifies a home on a street. This guide explains how to find ip using command prompt step by step, what the different addresses in the results mean, and how to use the information safely. It covers only your own computer and your own home network, never anyone else’s device.
Before you begin, it helps to understand the two kinds of address you may see. A private IP address, often starting with 192.168, identifies your computer on your own home or office network. A public IP address identifies your whole household connection to the wider internet, and it is usually assigned by your internet provider. Command Prompt on Windows shows your private address, which is the one you need for most home tasks, such as connecting to a shared folder or checking whether your computer is properly joined to your Wi-Fi network. Knowing how to find ip using command prompt saves time whenever your own connection needs checking.
How to Find IP Using Command Prompt Step by Step
The simplest answer to how to find ip using command prompt is a single command called ipconfig. Press the Windows key, type Command Prompt, and open the app from the search results. You do not need administrator rights for a basic lookup. In the black window that appears, type ipconfig and press Enter. Windows will list every network adapter on your computer, including Wi-Fi and Ethernet, along with the addresses assigned to each one.
Look for the adapter you are actually using. If you connect by Wi-Fi, find the section headed Wireless LAN adapter Wi-Fi. If you use a cable, look for Ethernet adapter Ethernet. Inside that section, the line labelled IPv4 Address is your computer’s private IP address on your local network. It will usually look like 192.168.1.25 or 192.168.0.14, with the last number varying from device to device. The Subnet Mask and Default Gateway lines sit nearby: the gateway is normally your router, and it is the address you would use to open your router settings in a browser if you ever needed to. Knowing how to find ip using command prompt saves time whenever your own connection needs checking.
Opening Command Prompt Quickly
There are several fast ways to open Command Prompt. You can press Windows plus R, type cmd, and press Enter. You can also right-click the Start button and choose Terminal or Command Prompt from the menu, depending on your version of Windows. If you use Windows 11, the Terminal app may open PowerShell by default, which also accepts the ipconfig command, so the result is the same. Whichever route you take, you should see a window with a prompt waiting for your command.
Reading the ipconfig Results
The ipconfig output can look crowded at first, because it lists adapters you may not use, such as virtual adapters for virtual machines or Bluetooth. Ignore any adapter that shows Media disconnected, since it is not currently carrying traffic. Focus on the active Wi-Fi or Ethernet adapter. Alongside the IPv4 address, you may also see an IPv6 address, which is a longer address format used by newer networks. For most home troubleshooting, the IPv4 address is the number people mean when they ask for an IP address. Knowing how to find ip using command prompt saves time whenever your own connection needs checking.
How to Find IP Using Command Prompt With More Detail
Once you know how to find ip using command prompt in its basic form, a fuller version of the command gives extra detail that can help with trickier problems. Type ipconfig /all and press Enter. This version adds your physical address, which is the hardware address of your network adapter, the DNS servers your computer uses, and whether your address was assigned automatically by your router. It also shows lease dates, which tell you when your computer obtained its current address and when that assignment expires.
The extra detail is useful when a support helper asks whether your computer is getting its address automatically, or when you need the physical address to identify your computer on a network list. Keep this full output private, though: while a private IP address alone is not sensitive outside your home, the full listing describes your own network setup, and there is no reason to share it publicly. Copy only the single line you need when someone you trust asks for it, and never post a full network listing on a public forum. Knowing how to find ip using command prompt saves time whenever your own connection needs checking.
What Each Part of the Result Means
Understanding the output makes the whole process more useful. The IPv4 address is your own computer on the local network. The subnet mask, usually 255.255.255.0 in a home, defines which addresses belong to the same local network. The default gateway is your router, the device that connects your home network to the internet. DNS servers translate website names into addresses, and they are usually supplied by your internet provider or your router.
If you see an address starting with 169.254, that is a warning sign. It means your computer could not reach your router to obtain a proper address, and it assigned itself a temporary one instead. In that case, check that Wi-Fi is switched on, that you are connected to the right network, and that your router is powered on. Restarting your computer’s Wi-Fi, or restarting the router, often resolves it. If the problem persists, try a wired connection to narrow down whether the fault lies with Wi-Fi or with the wider network. Knowing how to find ip using command prompt saves time whenever your own connection needs checking.
| Line in the Output | What It Means | Typical Home Example |
|---|---|---|
| IPv4 Address | Your computer on the local network | 192.168.1.25 |
| Subnet Mask | Size of the local network | 255.255.255.0 |
| Default Gateway | Your router | 192.168.1.1 |
| DNS Servers | Services that resolve website names | Provided by your router or provider |
| Physical Address | Hardware address of the adapter | A set of paired characters unique to the adapter |
Other Useful Commands for Your Own Network
Command Prompt offers a few companion commands that help you check your own connection. The ping command tests whether your computer can reach another device on your own network, such as your router. Typing ping followed by your gateway address sends a few small test packets and reports how quickly they return. A fast reply means the local link is healthy, while repeated timeouts point to a connection problem between your computer and the router.
Another handy command is ipconfig /release followed by ipconfig /renew, which asks your router for a fresh address. This can fix a stale or conflicting address after a router restart. Use it only on your own computer and your own network. The netsh command can reset network settings, but it is a bigger step and should only be used when simpler fixes have failed and you are comfortable reconfiguring Wi-Fi afterwards. For most users, ipconfig, ping, and a router restart cover the common cases. Knowing how to find ip using command prompt saves time whenever your own connection needs checking.
Checking Whether Wi-Fi or Ethernet Is Active
If you have both Wi-Fi and a cable connected, your computer may prefer one over the other, and the ipconfig list will show an address for each. The active adapter is the one without a Media disconnected note and with a proper IPv4 address. If you are troubleshooting, disconnecting the connection you are not using can remove confusion, because then only one active adapter remains in the list. Remember to reconnect afterwards if you need both options available.
Staying Safe When Looking Up Your Own IP
Finding your own IP address with how to find ip using command prompt is safe, but sharing network details carelessly is not wise. Your private address is only meaningful inside your own home, yet a full ipconfig listing still describes your setup, and screenshots can accidentally include other details. Share only what a trusted helper actually asks for, and crop screenshots to the relevant lines. Never use these commands to probe someone else’s device or network, and never try to obtain another person’s address: that crosses from troubleshooting your own equipment into invading someone else’s privacy. Knowing how to find ip using command prompt saves time whenever your own connection needs checking.
The same caution applies to public IP addresses. Your public address identifies your household connection to the wider internet, so treat it like a piece of household information rather than something to post publicly. If a website shows you a public address, that is normal, but there is no need to share it on social media or in public chats. Keeping network details within your household and trusted support conversations is a simple habit that avoids most problems.
For related guidance, see our explainer on whether an IP address counts as personal information, our guide to finding an IP address on a Mac, and our Linux IP address command guide if you also use that system. Knowing how to find ip using command prompt saves time whenever your own connection needs checking.
Frequently Asked Questions
Do I need administrator rights to run ipconfig?
No. A basic ipconfig lookup works in an ordinary Command Prompt window. Some network reset commands do need administrator rights, but simply viewing your own address does not.
Why does my IP address change sometimes?
Most home routers assign addresses automatically for a limited lease period, so your computer may receive a different last number after a restart or when the lease expires. This is normal and does not indicate a fault. Knowing how to find ip using command prompt saves time whenever your own connection needs checking.
What if ipconfig shows no IPv4 address?
Check that you are connected to Wi-Fi or Ethernet, that the router is on, and that the adapter is not disabled. Restarting Wi-Fi or the router, then running ipconfig again, resolves most cases.
Is my private IP the same as my public IP?
No. The private address shown by ipconfig identifies your computer inside your home network, while the public address identifies your whole household connection on the internet. They serve different purposes.
Conclusion
Mastering how to find ip using command prompt gives you a quick, reliable way to check your own computer’s place on your home network. Open Command Prompt, type ipconfig, and read the IPv4 address beside your active Wi-Fi or Ethernet adapter. Add ipconfig /all when you need fuller detail, use ping to test the link to your router, and keep the results within your household. With those few commands, most everyday network questions, from setting up a shared device to diagnosing a dropped connection, become much easier to answer.



