To find your IP address in Windows, type ipconfig into the Command Prompt and press Enter. This command displays all current TCP/IP network configuration values, including your IPv4 and IPv6 addresses, subnet mask, and default gateway for every network adapter on your device.

Knowing your IP address is essential for troubleshooting connectivity issues, setting up a local server, configuring port forwarding on your router, or connecting two devices on the same local network. While you can find this information in the Windows Settings menu, using the command line is significantly faster and provides more technical detail in a single view.

What You'll Need

  • A computer running a version of Microsoft Windows.
  • Administrative access (though basic IP information can be viewed by standard users).
  • An active network connection (Wi-Fi or Ethernet) if you are looking for a current network IP.

Step-by-Step

  1. Open the Start Menu: Click the Start button in the bottom-left corner of your screen or press the Windows key on your keyboard.
  2. Search for Command Prompt: Type cmd into the search bar. The "Command Prompt" app should appear in the search results.
  3. Launch the App: Click on "Command Prompt" to open the terminal window. It will appear as a black window with white text.
  4. Enter the Command: Type the following command exactly as shown: ipconfig
  5. Execute the Command: Press the Enter key on your keyboard.
  6. Locate Your IP Address: Look through the text that appears. You will see sections for different adapters (e.g., "Ethernet adapter" or "Wireless LAN adapter Wi-Fi").
    • Find the line labeled IPv4 Address. The numbers next to it (e.g., 192.168.1.15) are your local IP address.
    • Find the line labeled Default Gateway. This is typically the IP address of your router.

Common Mistakes

  • Typing "ip config" with a space: The command is one single word: ipconfig. Adding a space will result in an "is not recognized as an internal or external command" error.
  • Confusing Local IP with Public IP: The ipconfig command only shows your private (local) IP address assigned by your router. It does not show your public IP address (the one the rest of the internet sees). To find your public IP, you must use a web browser and search for "what is my IP."
  • Looking at the wrong adapter: If your computer has both Wi-Fi and an Ethernet cable plugged in, ipconfig will list both. Ensure you are looking at the adapter that is currently connected to the internet.
  • Misreading the IPv6 address: Modern systems show both IPv4 (four sets of numbers) and IPv6 (a long string of letters and numbers). Most home networking tasks still require the IPv4 address.

Tips

  • Get More Detail: If you need more information, such as your DNS server or MAC address (Physical Address), use the command ipconfig /all. This provides a comprehensive report of every network setting on the machine.
  • Clear Your DNS Cache: If you are having trouble accessing a specific website, you can use the command ipconfig /flushdns to clear the DNS resolver cache, which often fixes "Page Not Found" errors.
  • Refresh Your IP: If you have an IP conflict, you can release your current address and request a new one from the router by typing ipconfig /release followed by ipconfig /renew.
  • Export to Text: If you need to send your network info to a technician, type ipconfig > network_info.txt. This saves the output to a text file in your current folder instead of displaying it on the screen.

Troubleshooting

If the process does not go as planned, try these steps in order:

  1. Check for Typos: Ensure there are no spaces in ipconfig and that you are using a standard English keyboard layout.
  2. Run as Administrator: While ipconfig usually works for all users, some advanced flags (like /renew) require elevated permissions. Right-click "Command Prompt" in the search results and select "Run as administrator."
  3. Check Physical Connection: If the "IPv4 Address" line is missing or shows 0.0.0.0, your computer is not connected to a network. Check your Wi-Fi toggle or ensure your Ethernet cable is securely plugged in.
  4. Restart the Network Adapter: If the command shows an "Autoconfiguration IPv4 Address" (usually starting with 169.254.x.x), it means your computer cannot reach the DHCP server (router). Restart your router and then restart your computer.

Frequently Asked Questions

What is the difference between IPv4 and IPv6?

IPv4 is the older standard using four sets of numbers (e.g., 192.168.1.1). IPv6 is the newer version designed to provide more unique addresses, using a longer alphanumeric format.

Why does my IP address change sometimes?

Most home routers use DHCP (Dynamic Host Configuration Protocol), which assigns IP addresses temporarily. When the "lease" expires, the router may assign your device a different address.

Can someone find my physical location using my local IP?

No. A local IP address (like 192.168.x.x) only exists within your own home network. It cannot be used by someone outside your house to find your location.

Is ipconfig the same as ifconfig?

No. ipconfig is the command for Windows. ifconfig (or the newer ip addr) is the equivalent command used in Linux and macOS systems.

What does the Default Gateway mean?

The Default Gateway is the IP address of the device that connects your local network to the rest of the internet—almost always your home router.