The ip address command in cmd is the quickest way to check your own computer’s network details on Windows, without opening a maze of settings menus. If you have ever needed to find your own IP address to set up a printer, troubleshoot a Wi-Fi problem, check whether you are connected to the right network, or give a support technician the details of your own machine, the ip address command in cmd gives you the answer in seconds. This guide explains exactly which command to type, how to read the results, and how to fix the common problems that confuse first-time users, using only your own device and your own network connection.
Before we begin, one important boundary: this guide covers finding the IP address of your own Windows computer, for legitimate troubleshooting and setup on networks you own or are authorised to use. It does not cover obtaining anyone else’s IP address, and you should never try to look up, trace, or collect another person’s network details. With that clear, the steps below are safe, simple, and useful for everyday computer owners, students, and home workers alike.
What Is the IP Address Command in CMD?
CMD, short for Command Prompt, is a built-in Windows tool that lets you type text commands instead of clicking through menus. The ip address command in cmd is the command you type there to display your own computer’s Internet Protocol address, along with related details such as the subnet mask and the default gateway. An IP address is simply a number that identifies your device on a network, much like a house number identifies a home on a street, so that data sent across the network reaches the right machine.
Most home users will see two kinds of address. The private, or local, IP address is the one your router gives your computer for use inside your home network, and it usually starts with 192.168 or 10. The public IP address is the one your internet provider assigns to your whole household, and it is what websites see when you visit them. The ip address command in cmd shows your private address, which is the one you need for most home setup tasks, such as connecting a printer or checking a local connection. It does not reveal your public address, and that distinction matters when you are following a support guide.
Command Prompt has been part of Windows for decades, and the networking commands inside it are stable and well documented. That is why support teams still ask users to run them: the output is consistent, easy to copy, and hard to misread, unlike a screenshot of a settings page that may look different on every version of Windows. Learning this one command therefore saves time on many future troubleshooting calls.
IP Address Command in CMD: Step by Step
Follow these steps on your own Windows computer to run the ip address command in cmd and read your own details.
Step 1: Open Command Prompt
Press the Windows key, type cmd, and press Enter, or right-click the Start button and choose Terminal or Command Prompt from the menu. A black window opens with a blinking cursor. You do not need administrator rights for the basic lookup described here, so a normal Command Prompt window is enough.
Step 2: Type ipconfig and Press Enter
At the cursor, type ipconfig and press Enter. This is the main ip address command in cmd. Within a second, the window fills with information about each network adapter on your computer, such as Wi-Fi, Ethernet, and any virtual adapters. Do not worry if you see several sections: most computers have more than one adapter, and only the one you are actively using matters for your current connection.
Step 3: Find Your Active Adapter
Look for the section labelled Wireless LAN adapter Wi-Fi if you are connected wirelessly, or Ethernet adapter Ethernet if you are using a cable. Inside that section, find the line that says IPv4 Address. The number beside it, for example 192.168.1.42, is your own computer’s private IP address on your home network. The Subnet Mask and Default Gateway lines sit nearby: the gateway is usually your router’s address, and it is the number you type into a browser when you need to open your router’s own settings page.
Step 4: Get More Detail If Needed
If a support guide asks for fuller details, type ipconfig /all and press Enter. This longer version of the ip address command in cmd adds your physical address, DNS servers, and whether your address was assigned automatically. Copy only the lines the guide asks for, and avoid pasting the full output into public forums, since it contains details about your own network setup that are best kept private.
IP Address Command in CMD: Reading the Output
The output of the ip address command in cmd can look intimidating at first, but only a few lines matter for everyday use. The table below explains each one in plain language.
| Line in the output | What it means | When you need it |
|---|---|---|
| IPv4 Address | Your own computer’s address on your local network | Printer setup, local sharing, support checks |
| Subnet Mask | Defines which addresses belong to your local network | Advanced setup and troubleshooting |
| Default Gateway | Your router’s address, the route to the internet | Opening router settings, connection checks |
| DNS Servers | Servers that turn website names into addresses | Diagnosing pages that will not load |
| Physical Address | Your adapter’s hardware identifier | Router device lists and access controls |
| Media State | Whether an adapter is connected or disconnected | Spotting an unplugged cable or disabled Wi-Fi |
If you see an address starting with 169.254, your computer has not received a proper address from your router. That usually means the Wi-Fi password is wrong, the cable is loose, or the router needs a restart. If the IPv4 Address line is missing entirely for your Wi-Fi adapter, check that Wi-Fi is switched on and that you are connected to a network. Both are common, fixable problems, and neither means your computer is broken.
Other Useful Commands Alongside the IP Address Command in CMD
Once you know the basic ip address command in cmd, a few companion commands make troubleshooting much easier. The command ipconfig /release followed by ipconfig /renew asks your router for a fresh address, which can clear a stale or conflicting address after a network change. The command ipconfig /flushdns clears your computer’s stored website-name lookups, which sometimes fixes pages that load an old version or refuse to load at all. The command ping followed by your gateway address tests whether your computer can reach your router, and a reply with low times means the local connection is healthy.
Use these commands one at a time, and read the result before running the next. If ipconfig /renew returns an error, that tells you the problem lies between your computer and the router, not with a website. If ping to your gateway succeeds but websites still fail, the problem is more likely beyond your home network, such as a provider outage. Working through the commands in this order turns vague advice like “check your connection” into a clear diagnosis you can describe to support.
For comparison, other operating systems have their own equivalents. Linux users, for example, run a different command set, as described in a guide to the command to know the IP address in Linux, and understanding basic networking terms also helps, such as learning another name for a network when a support article uses unfamiliar wording. The Windows commands in this guide, however, are all you need for a Windows machine, and they work on every modern version of the system.
Common Problems With the IP Address Command in CMD
The most common mistake is typing the command with a spelling error, such as ipconfigg or ipconfing, which produces a “not recognised” message. Re-type it slowly as ipconfig, with no spaces inside the word, and press Enter again. Another frequent issue is opening the Run box or a search box instead of Command Prompt itself: the command only works inside the black Command Prompt window, not in a web browser address bar or a file search box.
Some users run ipconfig and see no Wi-Fi section at all. This can happen when Wi-Fi is disabled, when the computer is in aeroplane mode, or when a laptop’s wireless switch is off. Turn Wi-Fi back on, wait a few seconds for the network list to appear, connect to your network, and run the command again. If the section appears but shows “Media disconnected,” the adapter exists but is not connected, which points to the same checks: cable, Wi-Fi switch, and network password.
A third issue is confusion between adapters. Virtual adapters from VPN software or virtual machines create extra sections that can distract from the real Wi-Fi or Ethernet entry. Ignore sections with names you do not recognise, and focus on the adapter whose name matches your actual connection. If you use a VPN, remember that it may change how your traffic appears online, but your local IPv4 address from ipconfig still describes your computer on your home network.
Privacy and Safety When Checking Your Own IP Address
Your private IP address is not sensitive on its own, because the same 192.168 addresses appear in millions of homes, but the full ipconfig /all output includes details that you should not share publicly. Avoid posting screenshots of the full output on forums or social media, and share only the specific line a trusted support person asks for. Never run commands that someone online gives you unless you understand what they do, and never use network commands to probe devices that are not yours. Sticking to your own machine keeps troubleshooting both safe and legal.
It is also worth knowing that restarting your router or computer can change your private address, because most home routers assign addresses dynamically. If a guide or a device setup recorded your old address, run the ip address command in cmd again after a restart to get the current one. Keeping a short note of your gateway address, which rarely changes, is more useful than memorising a private address that may shift.
Frequently Asked Questions
What is the exact ip address command in cmd?
Type ipconfig and press Enter. For fuller details, type ipconfig /all. Both show your own computer’s network information on Windows.
Does ipconfig show my public IP address?
No. It shows your private address on your local network. Your public address is assigned to your router by your internet provider and is not shown by ipconfig.
Why does my address start with 169.254?
That is an automatic address Windows assigns when it cannot reach a router or DHCP server. Check your Wi-Fi connection, cable, and router, then run ipconfig /renew.
Can I find someone else’s IP address with cmd?
No, and you should not try. This guide covers only your own device on networks you own or are authorised to use. Looking up another person’s network details without permission is a privacy violation and may be unlawful.
IP Address Command in CMD: A Quick Recap
To recap, the ip address command in cmd is ipconfig, and it shows your own computer’s private address under your active adapter. Use the ip address command in cmd whenever a support guide asks for your local address, and use ipconfig /all only when fuller details are requested. Remember that the ip address command in cmd describes your own device on your own network, so keep the full output private and share only the line that is asked for.
Conclusion
The ip address command in cmd is simply ipconfig, typed into Command Prompt on your own Windows computer. Read the IPv4 Address line under your active Wi-Fi or Ethernet adapter, note the default gateway if you need router settings, and use ipconfig /all only when fuller details are requested. With that one command, plus a little care about which adapter you are reading and what you share, you can diagnose most home network problems in under a minute, and explain exactly what you found when you ask for help.



