Why you need to know your computer's IP address

Your computer's IP address is a unique number that identifies it on your home network — like a mailing address for data. You need it when you're setting up a router, troubleshooting a connection problem, or giving someone remote access to help you fix something. It's also useful if you're trying to see which devices are connected to your network, or if you want to assign the same address to a device every time it connects.

Every device on your network has an IP address. Your phone has one. Your printer has one. Your laptop has one. They're all different. When you know your computer's address, you can tell your router to treat it specially — for example, to always give it the fastest connection, or to block it from certain websites.

The address you'll find on your home network is called a private IP address. It only works inside your home. It looks like 192.168.1.100 or 10.0.0.50. This is different from your public IP address, which is how the outside internet sees your home — you don't need that for home network setup.

Key Takeaways

  • Your private IP address is a number like 192.168.1.100 that identifies your computer only on your home network, not on the internet.
  • Windows, Mac, and Linux each have a different built-in tool to show you this address without installing anything new.
  • The fastest method on any computer is to look at what your router assigned to your device, which you can do from your router's settings page.
  • If your computer's address keeps changing, you can set it to stay the same by using your router's DHCP reservation feature.

Finding your IP address on Windows

On Windows 10 or 11, the quickest way is through Settings. Click the Windows logo in the bottom left, then type "ip address" into the search box. Click "View your PC name and IP address" from the results. You'll see a section called "IPv4 address" — that's the number you need.

If that doesn't work, you can use the Command Prompt. Press the Windows key and R at the same time, type "cmd" and press Enter. In the black window that opens, type "ipconfig" and press Enter. Look for "IPv4 Address" in the results — it will be under "Ethernet" if you're plugged in with a cable, or under "Wireless LAN adapter" if you're using WiFi.

Write down the full number. It will have four groups of digits separated by periods, like 192.168.1.105. That's your private IP address on your home network.

Finding your IP address on Mac

On Mac, click the Apple logo in the top left corner and select "System Settings" (or "System Preferences" on older versions). Click "Network" in the left sidebar. Click "WiFi" or "Ethernet" depending on how you're connected. Your IP address appears next to "IPv4 Address" — it will look something like 192.168.1.110.

You can also use Terminal if you prefer the command line. Open Terminal (search for it in Spotlight by pressing Command and Space). Type "ifconfig" and press Enter. Look for "inet" in the section that matches how you're connected — that's your IP address.

Finding your IP address on Linux

Open a terminal window. Type "hostname -I" and press Enter. Your IP address will appear on the next line. That's the simplest method for most Linux distributions.

If that doesn't work, type "ip addr show" instead. Look through the output for a line that starts with "inet" — the number after it is your IP address. Ignore any line that shows 127.0.0.1, because that's your computer talking to itself, not your network address.

Checking your IP address from your router

Your router keeps a list of every device connected to it and what address it gave each one. This is often the most reliable way to see what address your computer actually has, especially if you're troubleshooting a connection problem.

Open a web browser and type your router's address into the address bar. Most home routers use 192.168.1.1 or 192.168.0.1. If neither of those works, check the sticker on the back or bottom of your router — it usually shows the address there. You'll be asked for a username and password. The default is often "admin" for both, but check your router's manual or the sticker if that doesn't work.

Once you're logged in, look for a section called "Connected Devices," "DHCP Clients," "Device List," or "Attached Devices." Your computer's name should be there with its IP address next to it. Different routers organize this differently, but it's usually in a settings or status menu.

What to do if your IP address keeps changing

By default, your router gives your computer a new IP address every time it connects. This usually doesn't matter for everyday use, but it can be annoying if you're trying to set up port forwarding or remote access. The solution is called DHCP reservation, and it tells your router to always give your computer the same address.

Log into your router using the same method described above. Find the section for DHCP, DHCP Reservation, or Static IP. You'll need your computer's MAC address — a different identifier that's unique to your network card. You can find it in the same place you found your IP address: in Windows Command Prompt, it's called "Physical Address" in the ipconfig output. On Mac, it's "Wi-Fi Address" in Network Settings. On Linux, it's the "link/ether" address in the ip addr output.

Enter your computer's MAC address and choose an IP address you want it to keep. Pick something in the same range as your current address — if you're at 192.168.1.105, pick something like 192.168.1.200. Save the change. Your computer will keep that address from now on.

Understanding public versus private IP addresses

The address you just found is your private IP address. It only works on your home network. If you're trying to let someone outside your home access your computer, they can't use this address — it won't reach them.

Your public IP address is what the outside internet sees when your computer connects through your router. It's assigned by your internet service provider. You can find it by searching "what is my IP" in any search engine. It's different from your private address, and it changes periodically unless you pay your provider for a static IP.

For home network setup, you only need your private address. Your public address matters if you're setting up remote access or port forwarding, but that's a separate topic.

Frequently Asked Questions

Why does my IP address look different on my phone than on my computer?

Each device on your network gets its own private IP address. Your phone, computer, and printer all have different ones. They're all on the same network, but they're identified separately. This is normal and expected.

Is it safe to share my private IP address with someone?

Your private IP address only works inside your home network, so sharing it with someone outside your home won't let them connect to your computer. However, don't share it with strangers online — it can reveal information about your network setup. If someone needs to help you troubleshoot, it's fine to share it with them.

What if I can't log into my router to see the device list?

Try the default username and password on the sticker attached to your router. If you've changed the password and forgotten it, you can reset the router to factory settings by holding the reset button for 10 seconds, but this will erase all your settings. After reset, the default password will work again.

Can I pick any IP address I want for my computer?

You can set a static IP address manually, but it's safer to use your router's DHCP reservation feature instead. If you pick an address your router is already using for another device, you'll create a conflict and both devices will have connection problems. DHCP reservation prevents this automatically.

Does finding my IP address put my computer at risk?

No. Your private IP address is only useful inside your home network. Finding it doesn't expose you to outside threats. It's a normal part of managing your network.