Open Command Prompt and run one command to see your IP address
The fastest way to find your IP address is to open Command Prompt on Windows and type a single command. Command Prompt is a text-based tool built into Windows that lets you run system commands directly. You do not need to install anything or navigate through menus — the information appears in seconds.
Your IP address is a set of numbers that identifies your device on a network. Windows stores this information and can display it through Command Prompt. The steps below work on Windows 10, Windows 11, and earlier versions.
Key Takeaways
- Press the Windows key, type cmd, and press Enter to open Command Prompt.
- Type ipconfig and press Enter to see your IP address listed as "IPv4 Address".
- Your local IP address (the one that starts with 192.168 or 10.) is what your device uses on your home or work network.
- If you need your public IP address instead, use a different command or visit a website that shows it.
- Command Prompt shows both your active network connection and any disconnected adapters you have.
Step-by-step: Finding your IP address with ipconfig
Step 1: Open Command Prompt. Press the Windows key on your keyboard (the key with the Windows logo). Type cmd without quotes. You will see "Command Prompt" appear in the search results. Press Enter or click on it to open the window.
Step 2: Type the command. In the Command Prompt window, type ipconfig exactly as shown and press Enter. The window will display a list of network information.
Step 3: Find your IP address. Look for the section labeled with your network connection name (usually "Ethernet" if you are plugged in with a cable, or "Wireless LAN adapter" if you are using Wi-Fi). Under that section, find the line that says IPv4 Address. The number next to it is your local IP address. It typically looks like 192.168.1.100 or 10.0.0.50.
Write down or copy this number if you need it for troubleshooting or network setup. This is the address your device uses to communicate with other devices on your home or work network.
Understanding what ipconfig shows you
The ipconfig command displays information about every network adapter on your computer, whether it is currently connected or not. You may see multiple sections if you have more than one network connection (for example, both Wi-Fi and Ethernet).
The IPv4 Address is the one you need in most situations. This is your local IP address — the address other devices on your network use to find you. If you see an address that starts with 169.254, your device is not properly connected to the network and did not receive an address from your router.
The Default Gateway listed below your IP address is your router. The DNS Servers are the services that translate website names into IP addresses. You usually do not need to change these unless you are troubleshooting a connection problem.
Finding your public IP address instead
The IP address ipconfig shows you is your local IP address — the one used inside your home or office network. If you need your public IP address (the one the internet sees when you visit websites), Command Prompt requires a different approach.
Type nslookup myip.opendns.com resolver1.opendns.com and press Enter. This command asks an external service to tell you what IP address you appear to have from the internet. The answer appears as "Address:" in the results. This is the IP address your internet provider assigned to your router.
Alternatively, you can simply open a web browser and search "what is my IP address" — any search engine will display your public IP address at the top of the results. This method is often faster if you only need the number once.
Common mistakes and how to fix them
Mistake 1: Typing the command wrong. Command Prompt is strict about spelling. If you type "ipconfig" as "ipconfing" or "ip config" with a space, it will not work. Copy and paste the command if you are unsure. The command is all lowercase, though Command Prompt accepts uppercase too.
Mistake 2: Looking in the wrong section. If you have multiple network adapters, make sure you are reading the information for the one you are actually using. If you are on Wi-Fi, look under "Wireless LAN adapter". If you are plugged in with a cable, look under "Ethernet". Ignore sections labeled "Disconnected" or "Media disconnected".
Mistake 3: Confusing IPv4 and IPv6. You may see both an IPv4 Address and an IPv6 Address listed. IPv4 is the older, more common format (looks like 192.168.1.100). IPv6 is newer and looks like a long string of letters and numbers (2001:db8::1). Unless you specifically need IPv6, use the IPv4 address.
When you need your IP address and what to do with it
You might need your IP address for several reasons. If you are setting up a printer, security camera, or other device on your network, you may need to enter your computer's IP address. If you are troubleshooting a connection problem with your internet provider, they may ask for your public IP address. If you are accessing your computer remotely, you need the local IP address to connect from another device on the same network.
Once you have your IP address, keep it somewhere safe if you plan to use it multiple times. Your local IP address can change if you restart your router or if your device reconnects to the network, though it usually stays the same for weeks or months. Your public IP address changes less frequently but can shift if your internet provider reassigns it.
Other ipconfig commands you might see
If you search online for IP address help, you may see people mention ipconfig /all (with a space and /all at the end). This shows the same information as ipconfig but includes additional details like your MAC address and DHCP settings. You do not need /all for basic IP address lookup — plain ipconfig gives you everything you need.
You may also see ipconfig /release and ipconfig /renew mentioned in troubleshooting guides. These commands disconnect and reconnect your network adapter, which can fix connection problems. Do not run these unless you are following specific troubleshooting steps, as they will temporarily disconnect you from the network.
Frequently Asked Questions
Why does my IP address start with 169.254?
This means your device did not receive an address from your router. Restart your router by unplugging it for 30 seconds, then plug it back in. Wait two minutes for it to fully restart, then run ipconfig again. If the address still starts with 169.254, your network adapter may not be working properly.
Can I change my IP address using Command Prompt?
You can, but it requires more advanced commands and is rarely necessary. Most people should let their router assign an IP address automatically. If you need a specific IP address for a device like a printer, it is usually easier to set it through the device's own settings rather than through Command Prompt.
Is my IP address the same as my MAC address?
No, they are different. Your IP address is like a mailing address (it can change). Your MAC address is like a serial number (it stays the same). To see your MAC address in Command Prompt, run ipconfig /all and look for "Physical Address".
What if Command Prompt says "ipconfig is not recognized"?
This is rare on Windows but can happen if Command Prompt is not running with the right permissions. Close the window and try again, but this time right-click on Command Prompt and select "Run as administrator" before typing the command.