How to find your IP address in Command Prompt

Open Command Prompt on your Windows computer and type ipconfig, then press Enter. The tool will display your network settings, including your IPv4 Address — the four-part number like 192.168.1.5 that identifies your device on your home network. This is the fastest way to see what address your router assigned to your computer.

If you want more detail, type ipconfig /all instead. This shows your MAC address (a hardware identifier), your DNS servers, your gateway (usually your router), and whether your address came from DHCP (automatic assignment) or was set manually. Most home networks use DHCP, so your router hands out addresses automatically.

Command Prompt is built into Windows and requires no installation. You can open it by pressing Windows key + R, typing cmd, and pressing Enter. On Windows 11, you can also right-click the Start menu and select "Terminal" to get the same tool with a slightly different look.

Key Takeaways

  • Type ipconfig in Command Prompt to see your IPv4 address — the number your router assigned to your computer.
  • Type ipconfig /all to see additional details like your MAC address, gateway, and DNS servers.
  • Your IPv4 address usually starts with 192.168 or 10.0 on a home network and changes if your router restarts or your device reconnects.
  • Knowing your IP address helps you troubleshoot network problems, access your router's settings, or identify which device is which on your network.

Why you might need to check your IP address

You need your IP address to troubleshoot network problems — if your internet is slow or dropping, your router's settings page often shows which device is using bandwidth. You also need it to log into your router's admin panel, which usually lives at an address like 192.168.1.1 or 192.168.0.1. Knowing your gateway (the address shown next to "Default Gateway" in ipconfig /all) tells you exactly where to go.

If you are setting up port forwarding to run a game server or security camera, you need your computer's IP address so the router knows which device to send incoming traffic to. You may also need it to connect to your computer remotely from another device, or to check whether your device is getting an address from your router at all — if ipconfig shows 169.254.x.x instead of 192.168.x.x, your computer failed to reach the DHCP server and you have a connection problem.

Understanding IPv4 vs. IPv6 addresses

Your computer likely has both an IPv4 address (four numbers separated by dots, like 192.168.1.5) and an IPv6 address (a longer string with letters and colons). IPv4 is the older standard and the one your home network almost certainly uses for everyday traffic. IPv6 is the newer standard designed to replace it, but most home routers still rely on IPv4 for internal traffic.

When you run ipconfig, focus on the IPv4 address under "Ethernet adapter" or "Wireless LAN adapter" — whichever one you are using to connect. The IPv6 address is there too, but you rarely need it for home network tasks. If you see multiple adapters listed (like Ethernet and Wi-Fi), each one has its own IP address, and only the one you are actually connected through matters.

What the other information in ipconfig means

The Default Gateway is your router's IP address on the network — usually 192.168.1.1 or 192.168.0.1. This is where you go to change your Wi-Fi password, set up port forwarding, or see what devices are connected. The DHCP Server is the device handing out IP addresses automatically — on most home networks, that is also your router.

The DNS Servers are the computers that translate website names (like google.com) into IP addresses your browser can reach. Your router usually passes along your internet provider's DNS servers, but you can change this if you want to use a different service like Cloudflare (1.1.1.1) or Google (8.8.8.8). The MAC Address is your computer's hardware identifier on the network — useful if you want to set up MAC filtering or reserve a specific IP address for this device.

How to find your public IP address instead

The address ipconfig shows you is your private IP address — it only works on your home network. Your public IP address is what the rest of the internet sees, and it is assigned by your internet provider. To find it, open any web browser and search "what is my IP" — Google will show it at the top of the results, or you can visit a site like whatismyipaddress.com.

You need your public IP address if you want to access your home network from outside your house (like checking a security camera while at work) or if you are troubleshooting an internet problem with your provider. Your public IP address changes periodically unless you pay for a static IP from your provider. Your private IP address can also change if you restart your router or if your device reconnects to Wi-Fi, though most routers try to give the same device the same address each time.

Checking IP addresses for other devices on your network

To see what IP addresses all your devices have, type arp -a in Command Prompt. This shows every device your computer has recently communicated with on the network, along with its IP address and MAC address. It is useful for finding a device you just added to your network, or for spotting unknown devices that should not be there.

You can also log into your router's admin panel (at your Default Gateway address) to see a complete list of connected devices. Most routers show the device name, IP address, MAC address, and connection type (Wi-Fi or Ethernet) for everything currently on the network. This is more reliable than arp -a because it shows devices even if your computer has not talked to them recently.

Frequently Asked Questions

Will my IP address change if I restart my computer?

Not usually. Your router remembers which device is which and tries to give it the same address each time. However, if your computer is off for a long time or your router restarts, the address may change. If you need a device to always have the same address, you can set a static IP in your network settings or reserve an address in your router's DHCP settings.

What does it mean if ipconfig shows 169.254.x.x?

That address means your computer did not reach the DHCP server (usually your router) and assigned itself a temporary address instead. Check that your Wi-Fi is connected or your Ethernet cable is plugged in, restart your router, and run ipconfig again. If the problem persists, your network adapter may have a driver problem.

Can I change my private IP address?

Yes. You can set a static IP in your Windows network settings, or you can reserve an address in your router's DHCP settings so it always gives your device the same one. Most people do not need to — letting your router assign addresses automatically works fine. Change it only if you need a device to always be at the same address for port forwarding or remote access.

Is my private IP address a security risk?

No. Your private IP address only works on your home network and is not visible to the internet. Your public IP address (the one your internet provider assigns) is visible, but that is normal and expected. The real security comes from your router's firewall and Wi-Fi password, not from hiding your IP address.