The quickest way to find your IP address

Open the Command Prompt by pressing Windows key + R, type cmd, and press Enter. At the prompt, type ipconfig and press Enter. Your IPv4 address appears next to "IPv4 Address:" — it looks like four numbers separated by periods, such as 192.168.1.5. This is your local IP address, the one your computer uses on your home or office network.

If you need your public IP address instead — the one your internet provider assigns to your whole network — open any web browser and search for "what is my IP." The first result will show it. Your public IP is what websites see when you visit them; your local IP is what only devices on your network can see.

Both addresses serve different purposes. Your local IP lets your printer, phone, and other devices find your computer on the same network. Your public IP is how the internet finds your home network. Most of the time, when someone asks for your IP address, they mean your local one.

Key Takeaways

  • Press Windows key + R, type cmd, and run ipconfig to see your local IP address next to "IPv4 Address."
  • Your local IP address is what devices on your home or office network use to find your computer.
  • Your public IP address is what websites see and can be found by searching "what is my IP" in any browser.
  • The Settings app also shows your IP address under Network & Internet, though Command Prompt is faster.

Finding your IP address through Settings

If you prefer not to use Command Prompt, Windows Settings offers a graphical way to find the same information. Press Windows key + I to open Settings, then click Network & Internet on the left side. Click Wi-Fi if you are connected wirelessly, or Ethernet if you are using a cable.

Next, click the name of your network (the Wi-Fi network or Ethernet connection you are currently using). Scroll down to the "IP settings" section. Your IPv4 address appears there, along with other network details like your subnet mask and default gateway. This method takes a few more clicks than Command Prompt but shows the same information in a window you can read without typing.

Understanding what the numbers mean

An IPv4 address has four sections separated by periods, and each section is a number between 0 and 255. A typical home network address starts with 192.168 or 10.0. The third and fourth sections change depending on your device and network setup. For example, 192.168.1.5 means your computer is device number 5 on network 192.168.1.

Your router assigns these local addresses automatically using a system called DHCP. Every device on your network gets a unique local IP so they can find each other. If you have a printer, phone, and laptop all connected to the same Wi-Fi, each one has a different local IP address. Your router keeps track of which address belongs to which device.

IPv6 addresses are a newer format that looks completely different — they use letters and numbers and are much longer, like 2001:0db8:85a3:0000:0000:8a2e:0370:7334. Most home networks still use IPv4, but both may appear in your network settings. Unless someone specifically asks for an IPv6 address, your IPv4 address is what they need.

Why you might need to know your IP address

You need your local IP address when setting up a printer, security camera, or other device on your network. Many devices have a web interface you reach by typing their IP address into your browser — for example, typing 192.168.1.100 into the address bar might open your printer's settings page. Without knowing the IP address, you cannot reach these interfaces.

Troubleshooting network problems sometimes requires knowing your IP address too. If your internet is not working, your IT support person or internet provider might ask you to confirm what address your computer has. If you are having trouble connecting to a specific device, knowing both your IP and the other device's IP helps narrow down whether the problem is with your computer, the other device, or the connection between them.

Your public IP address matters less often, but you might need it if you are setting up remote access to your computer or running a server from home. Most people never need their public IP for everyday tasks.

What to do if your IP address keeps changing

Local IP addresses normally stay the same for weeks or months, but they can change if your router restarts or if you unplug your computer for a long time. If an address keeps changing and you need it to stay the same — for example, because you are accessing a printer by its IP — you can set a static IP address.

The easiest way is to assign a static address in your router's settings. Log into your router (usually by typing 192.168.1.1 or 192.168.0.1 into your browser), find the DHCP or IP reservation section, and tell it to always give your computer the same address. The exact steps vary by router brand, so check your router's manual or manufacturer website for instructions.

Alternatively, you can set a static IP directly on your computer through Windows Settings under Network & Internet, but this is more complicated and can cause problems if you move between networks. Using your router's reservation feature is simpler and safer.

Checking your IP address on a network you do not own

If you are on a public Wi-Fi network — at a coffee shop, library, or hotel — your local IP address still works the same way. Press Windows key + R, type cmd, run ipconfig, and you will see the local IP that network's router assigned to you. This address only works while you are connected to that network.

Your public IP address on a public network belongs to that location, not to you. If you search "what is my IP" while connected to a coffee shop's Wi-Fi, the result will show the coffee shop's public IP, not your home network's. This is normal and expected — it is one reason why using public Wi-Fi for sensitive tasks like banking is risky.

Frequently Asked Questions

Is my IP address the same as my MAC address?

No. Your IP address is a number your router assigns and can change. Your MAC address is a permanent identifier built into your network card that never changes. Both appear in ipconfig output — MAC address is listed as "Physical Address." Devices use MAC addresses to find each other on the same network; IP addresses route data across the internet.

Can someone harm me if they know my IP address?

Your public IP address is visible to every website you visit, so it is not secret. Knowing your public IP alone does not let someone access your computer — your firewall and router block incoming connections by default. Your local IP address is only visible to devices on your network, so it is even less of a concern. Standard security practices like using a firewall and keeping Windows updated protect you far more than hiding your IP.

Why do I see multiple IP addresses in ipconfig?

If you have multiple network connections — for example, both Wi-Fi and Ethernet plugged in — each one gets its own IP address. You are probably only using one at a time. Look for the connection you are actually using (the one that is connected) and use that IP address. If you are only using one connection, you should only see one IPv4 address listed.

What if ipconfig shows 169.254 as my IP address?

An address starting with 169.254 means your computer could not reach the router or DHCP server. This usually means your network cable is unplugged, your Wi-Fi is disconnected, or your router is not working. Reconnect to your network or restart your router. Once you are properly connected, ipconfig should show a normal address like 192.168.1.x.