You can see your IPv4 address in Command Prompt by typing ipconfig and looking for the IPv4 Address under your active network connection. This works on Windows 10/11. No admin rights or special tools are required—just open Command Prompt and run the command.

What You'll Need

  • A Windows PC running Windows 10 or Windows 11 (not macOS or Linux).
  • Administrator privileges are not required for this method.
  • A working network connection (Wi-Fi or Ethernet).

Step-by-Step

  1. Open Command Prompt: Press the Win key (Windows logo) on your keyboard and type cmd. Press Enter.

    Alternative: Search for "Command Prompt" in the Start menu or press Ctrl + R, type cmd, then press Enter.

  2. Run the ipconfig command: In the Command Prompt window, type ipconfig and press Enter. The command will display a list of network details for all adapters on your PC.
  3. Locate your IPv4 address: Scroll through the output and find the section labeled for your active network connection (usually Wireless LAN adapter Wi-Fi for Wi-Fi or Ethernet adapter Ethernet for a wired connection). Under this section, look for the line that starts with IPv4 Address. The value next to it (e.g., 192.168.1.100) is your IPv4 address.

    Note: If you have multiple network adapters (e.g., both Wi-Fi and Ethernet), check each one to confirm which is active.

  4. Optional: Filter for only your IPv4 address: If you prefer a cleaner output, you can use the ipconfig /all command followed by findstr /v /c:"IPv4" in the same window to highlight only the IPv4 details. However, ipconfig alone is sufficient for most users.

Common Mistakes

  • Checking the wrong adapter: Some users accidentally read the IPv6 address instead of IPv4. IPv6 addresses start with 2001: or fe80:, while IPv4 addresses look like 192.168.x.x or 10.x.x.x. Always double-check the label.
  • Assuming the first address is always correct: If you have multiple network adapters (e.g., a VPN or secondary connection), the IPv4 address listed first may not be your primary connection. Look for the adapter with a status of Connected under Connection-specific DNS Suffix.
  • Ignoring the "Default Gateway" line: While not your computer’s IPv4 address, this line shows your router’s IP (e.g., 192.168.1.1). Some users confuse it with their own IP.

Tips

  • Use ipconfig /all for more details: This command provides additional information like MAC address, subnet mask, and DNS servers, which can be useful for troubleshooting.
  • Check your network type: If you’re on a corporate or public network (e.g., airport Wi-Fi), your IPv4 address may change frequently. For a static IP, you’ll need to configure it manually via your router or network admin.
  • Save the output for later: Right-click the Command Prompt title bar and select Edit > Mark, then scroll to the end of the output, select it, and copy it. Paste this into a text file if you need to reference it later.
  • For macOS or Linux users: The commands differ. On macOS, use ifconfig; on Linux, use ip a or hostname -I. This guide only covers Windows.

Troubleshooting

If you don’t see an IPv4 address or encounter issues:

  • Restart your network adapter: In Command Prompt, type netsh interface set interface "YourAdapterName" admin=disable, then netsh interface set interface "YourAdapterName" admin=enable (replace YourAdapterName with your actual adapter name, e.g., Wi-Fi). This resets the connection.
  • Check for network errors: If your connection is unstable, run ping 8.8.8.8 in Command Prompt. If packets are lost, your network may need troubleshooting (e.g., restarting your router).
  • Update your network driver: If the ipconfig output is incomplete or incorrect, outdated drivers may be the cause. Update them via Device Manager > Network adapters > Right-click > Update driver.
  • Verify your connection status: If no adapter appears in the ipconfig output, your network cable may be unplugged (Ethernet) or your Wi-Fi may be disabled. Check your physical connections or turn Wi-Fi on in the taskbar.
  • Run as Administrator (if restricted): Rarely, some network commands require admin rights. Right-click Command Prompt and select Run as administrator to try again.

Frequently Asked Questions

Why does my IPv4 address keep changing?

Most home routers assign dynamic IPv4 addresses via DHCP. This is normal and ensures multiple devices can share the same network. If you need a static IP, configure it manually in your router’s settings or via ipconfig /all and assign a reserved address.

Can I find my IPv4 address from another device on the network?

Yes. On your phone or another computer, use the same ipconfig method (or ifconfig on macOS/Linux). Alternatively, check your router’s admin panel (usually via 192.168.1.1 or 192.168.0.1) to see connected devices and their IPs. Note: Some routers require login credentials.

What’s the difference between IPv4 and IPv6 addresses?

IPv4 addresses are 32-bit (e.g., 192.168.1.100) and widely used today, while IPv6 addresses are 128-bit (e.g., 2001:0db8:85a3:0000:0000:8a2e:0370:7334). IPv6 supports far more unique addresses and is designed for the internet’s growth. Your device may have both assigned, but the IPv4 address is typically what you’ll use for local network tasks.

Is my IPv4 address the same as my public IP?

No. Your ipconfig output shows your local IPv4 address (e.g., 192.168.1.100), assigned by your router. Your public IP is assigned by your ISP and can be checked by visiting whatismyip.com or using curl ifconfig.me in Command Prompt. The public IP is visible to websites and services you connect to.

Why does my IPv4 address show as 169.254.x.x?

This indicates your device is using APIPA (Automatic Private IP Addressing) and cannot communicate with your router. It’s usually caused by a DHCP server failure or incorrect network settings. Restart your router or check your network cables/Wi-Fi connection.

Can I change my IPv4 address manually?

Yes, but it’s advanced. To set a static IPv4 address, you’ll need to configure it in your router’s DHCP settings (assign a reserved address for your device) or via netsh commands in Command Prompt. Be cautious—misconfigurations can disrupt your connection. Most users should leave this to their router’s DHCP.