Open Command Prompt and run ipconfig to see your IP address

The fastest way to find your IP address is to open Command Prompt and type ipconfig, then press Enter. Windows will display a list of network adapters on your computer, and your IP address appears next to "IPv4 Address" for each one. This takes about 10 seconds and works on any Windows machine without installing anything.

If you have multiple network adapters — for example, both Wi-Fi and Ethernet — you'll see an entry for each. The one marked "Connected" or the one you're actually using is the one that matters. Look for the adapter name like "Wireless LAN adapter Wi-Fi" or "Ethernet adapter Ethernet" to identify which is which.

Key Takeaways

  • Type ipconfig in Command Prompt to display all IP addresses assigned to your computer in seconds.
  • Your IPv4 address is the standard IP address most devices and networks use; IPv6 is a newer format that some networks support.
  • If you need more detail about your network setup, ipconfig /all shows DNS servers, MAC addresses, and DHCP status for each adapter.
  • The IP address shown in Command Prompt is your local address on your home or office network, not the address the internet sees when you browse.

How to open Command Prompt on Windows

Press the Windows key and type cmd, then press Enter. Command Prompt opens as a black window with a blinking cursor. You can also right-click the Windows Start button and select "Terminal" or "Command Prompt" if you're on Windows 11, or search for "Command Prompt" in the Start menu on Windows 10.

If you need administrator access for certain network tasks, right-click Command Prompt in the search results and select "Run as administrator." For basic IP address lookup, standard Command Prompt is enough.

Understanding ipconfig output and what each line means

When you run ipconfig, you see sections for each network adapter. The most important lines are "IPv4 Address" (your current local IP, usually starting with 192.168 or 10.0 on home networks) and "Default Gateway" (the address of your router). The "Subnet Mask" defines which devices are on your same local network.

If you see "Media State: Media disconnected" under an adapter, that network connection is not active. Only adapters with "Media State: Connected" are currently in use. On most home setups, you'll have one active adapter — either Wi-Fi or Ethernet, depending on how you're connected.

Using ipconfig /all for detailed network information

Type ipconfig /all to see expanded information about every network adapter, including your MAC address (the physical hardware address of your network card), DHCP server address, DNS servers, and whether DHCP is enabled. This is useful if you need to troubleshoot network problems or set up port forwarding on your router.

The MAC address appears as "Physical Address" and looks like six pairs of numbers and letters separated by hyphens (for example, 00-1A-2B-3C-4D-5E). Some routers and networks use MAC addresses to identify devices, so this information is sometimes needed for setup or security purposes.

Finding your public IP address (the one the internet sees)

The IP address shown in Command Prompt is your local IP address — the address other devices on your home or office network use to find your computer. This is different from your public IP address, which is what websites see when you browse the internet. Command Prompt does not show your public IP.

To find your public IP, open a web browser and search "what is my IP" or visit a site like whatismyipaddress.com. Your public IP is assigned by your internet service provider and is shared by all devices on your home network. It changes periodically unless you pay for a static IP address.

Refreshing your IP address with ipconfig /release and /renew

If your computer is not connecting to the network properly, you can reset your IP address by running ipconfig /release followed by ipconfig /renew. The first command tells your router to stop assigning your current IP address; the second asks for a new one. This usually takes a few seconds and can fix connection problems caused by IP conflicts.

You need administrator access to run these commands. Open Command Prompt as administrator, type each command separately, and press Enter after each one. Wait a few seconds between them. Your internet connection will briefly drop and reconnect as the new IP is assigned.

Other useful ipconfig commands for network troubleshooting

ipconfig /displaydns shows the DNS cache on your computer — a record of website addresses you've recently visited and their IP addresses. ipconfig /flushdns clears this cache, which can fix problems where a website address is not resolving correctly. ipconfig /all combined with ipconfig /release and ipconfig /renew covers most network troubleshooting needs for home users.

If you're setting up a printer, security camera, or other device on your network, knowing your local IP address and subnet mask helps you understand which devices can communicate with each other. Most home networks use the 192.168.x.x range, and devices on the same subnet can find each other directly.

Frequently Asked Questions

Why do I see two different IP addresses in ipconfig output?

You likely have two network adapters — one for Wi-Fi and one for Ethernet. Only the one you're actively using will have a valid IP address; the disconnected one may show zeros or "Media disconnected." If both show active addresses, your computer is connected to two networks at the same time, which is unusual but possible.

Is my IPv4 address the same as my IP address?

Yes, for practical purposes. IPv4 is the current standard format (four numbers separated by periods, like 192.168.1.100). IPv6 is a newer format that some networks support, but most home networks still use IPv4. When someone asks for "your IP address," they mean your IPv4 address.

Can I change my local IP address?

Yes, but it's usually not necessary. Your router assigns it automatically through DHCP. If you need a permanent address for a specific device — like a printer or server — you can set a static IP in your router's settings or in your computer's network settings, but this requires some technical knowledge and can cause conflicts if done incorrectly.

What does "Default Gateway" mean in ipconfig?

Your default gateway is your router's IP address. It's the device that connects your local network to the internet. If you can't reach other devices on your network or the internet, checking that your default gateway is correct (usually 192.168.1.1 or 192.168.0.1) is a good first troubleshooting step.