Open Command Prompt and run the right command
Your IP address is a number that identifies your device on a network. You can find it in seconds using Command Prompt, which is a built-in Windows tool that lets you type commands directly to your computer. The fastest way is to open Command Prompt and type a single line.
Press the Windows key and type cmd, then press Enter. A black window will open. Type ipconfig and press Enter. Your computer will display a list of network information, including your IP address next to "IPv4 Address". This is the number you are looking for — it usually looks like 192.168.1.5 or 10.0.0.15.
If you have multiple network connections (WiFi and Ethernet, for example), you will see an entry for each one. Look for the connection you are actually using right now. If you are on WiFi, find the section labeled "Wireless LAN adapter" or "WiFi". If you are plugged in with a cable, find "Ethernet adapter".
Key Takeaways
- Open Command Prompt by pressing Windows key and typing cmd, then press Enter.
- Type ipconfig and press Enter to see your IP address next to "IPv4 Address".
- If you have multiple network connections, find the one you are currently using — WiFi or Ethernet — to get the correct IP address.
- Your IP address is a number like 192.168.1.5 that identifies your device on your network.
- You can also type ipconfig /all to see additional network details like your MAC address and DNS settings.
Understanding what ipconfig shows you
When you run the ipconfig command, Command Prompt displays several pieces of information about each network connection. The most important one for most people is the IPv4 Address, which is your device's address on your local network (your home WiFi or office network).
You will also see a "Default Gateway" — this is your router's address. The "Subnet Mask" defines which devices are on the same network as you. These numbers work together to let your device talk to other devices and to the internet. For basic troubleshooting, you usually only need the IPv4 Address, but the other numbers are useful if you are setting up a printer, security camera, or other device that needs a specific network address.
Find your public IP address instead
The IP address that ipconfig shows you is your local IP address — it only works on your home or office network. Your public IP address is different. It is the address that websites and internet services see when you connect to them. You cannot find your public IP address using ipconfig because it comes from your internet provider, not from your device.
To find your public IP address, open any web browser and search for "what is my IP address" or go to a site like whatismyipaddress.com. The page will display your public IP address immediately. Your public IP address changes periodically (usually every few days or weeks, depending on your internet provider), while your local IP address stays the same until you restart your router or your device.
Use ipconfig /all for more detailed information
If you need more than just your IP address, type ipconfig /all instead of just ipconfig. This command shows every piece of network information your device has, including your MAC address (a unique identifier for your network card), your DNS servers (which translate website names into IP addresses), and whether your IP address was assigned automatically or manually.
The /all version is useful when you are troubleshooting network problems or setting up devices that need specific network settings. Most of the extra information is technical and you will not need it for everyday use, but it is there if a technician asks you for it or if you are configuring something that requires it.
Troubleshoot if you do not see an IP address
If you run ipconfig and see "Media Disconnected" or no IPv4 Address listed, your device is not connected to the network. Check that your WiFi is turned on and you are connected to your network, or that your Ethernet cable is plugged in firmly on both ends. Then run ipconfig again.
If you see an IP address that starts with 169.254 (like 169.254.1.5), your device is not getting an address from your router. Restart your router by unplugging it for 30 seconds, plugging it back in, and waiting two minutes for it to fully restart. Then run ipconfig again. If the problem continues, restart your computer as well.
Find a specific device's IP address on your network
If you need to find the IP address of another device on your network — a printer, security camera, or another computer — you can use the arp -a command in Command Prompt. This shows all the devices currently connected to your network and their IP addresses. Type arp -a and press Enter to see the list.
The list will show IP addresses and MAC addresses (the device's hardware identifier). Finding the right device can be tricky because the list does not always show device names. If you know the MAC address of the device you are looking for (usually printed on the device or in its manual), you can match it to the IP address. Otherwise, you may need to check your router's settings to see which IP addresses belong to which devices.
Frequently Asked Questions
Why does my IP address start with 192.168 or 10.0?
These are private IP address ranges reserved for local networks. Every home and office network uses addresses from these ranges. Your router assigns these addresses to your devices so they can talk to each other. These addresses do not work on the internet — only your public IP address does that.
Will my IP address change if I restart my computer?
Usually not. Your router remembers your device and assigns it the same local IP address each time you connect. However, if you restart your router or if your device is disconnected for a long time, you might get a different address. Your public IP address changes more often — typically every few days or weeks depending on your internet provider.
Can I use Command Prompt to find my IP address on Mac or Linux?
Command Prompt is Windows only. On Mac, open Terminal and type ifconfig. On Linux, open a terminal and type ip addr. Both commands show the same information as ipconfig on Windows.
What should I do if I need to give someone my IP address?
Make sure you are giving them the right one. If they need to connect to your device from outside your home or office, give them your public IP address (from whatismyipaddress.com). If they are on your same network, give them your local IP address (from ipconfig). Ask them which one they need before you share it.