Finding your laptop's IP address in Windows or Mac

Your laptop has an IP address right now — it is assigned automatically when you connect to your home network. To find it, you use built-in tools that show you what your router gave your device. The steps differ between Windows and Mac, but both take less than a minute.

On Windows, open the Start menu and type cmd to open Command Prompt. Type ipconfig and press Enter. Look for the section labeled with your network name (or "Ethernet" if you are plugged in with a cable). The line that says IPv4 Address is your laptop's current IP address — it will look something like 192.168.1.105.

On Mac, click the Apple menu and go to System Settings (or System Preferences on older versions). Click Wi-Fi or Network on the left side. Click Details or the network name you are connected to. Your IP address appears on the screen — usually labeled as IP Address or IPv4 Address.

Key Takeaways

  • Windows users open Command Prompt, type ipconfig, and find the IPv4 Address line under their network name.
  • Mac users go to System Settings, select their network, and click Details to see the IP Address field.
  • Your IP address changes each time you restart your laptop or reconnect to the network, unless your router is set to assign a static address.
  • You need your laptop's IP address to troubleshoot network problems, access it remotely, or set up port forwarding on your router.

Why you might need to know your laptop's IP address

Knowing your laptop's IP address becomes useful when something on your network is not working the way you expect. If your laptop is not connecting to a printer or another device on your home network, you may need to tell that device your laptop's address. If you want to access files on your laptop from another room using a file-sharing program, you give that program your laptop's IP address.

Your IP address also matters if you are troubleshooting with your internet provider or a tech support person. They may ask for it to see what your router thinks your laptop should be able to do. It is also the address you use if you want to set up port forwarding on your router — a way to let people outside your home network reach a service running on your laptop.

The difference between your laptop's local IP and your home network's public IP

Your laptop has two different IP addresses, and they do different jobs. The address you find using ipconfig or System Settings is your local IP address — it only works inside your home network. Your router assigned it to your laptop so other devices on your Wi-Fi can find it. If you restart your laptop, your router usually gives it a different local IP address the next time it connects.

Your public IP address is what the rest of the internet sees. It belongs to your internet provider, not to your laptop. Your router translates between the two — when you visit a website, the website sees your public IP, not your local one. You can find your public IP by searching "what is my IP" in any web browser. Your public IP changes when your internet provider decides to reassign it, which might happen once a month or once a year depending on your provider.

For most home network tasks, you only need your local IP address. You use your public IP only when you are setting up something that people outside your home need to reach, like a web server or a security camera that you want to watch from work.

How to set a static IP address so it does not change

By default, your router assigns a new local IP address to your laptop each time it connects — this is called DHCP. If you want your laptop to always have the same address, you can set a static IP address instead. This is useful if you are running a service on your laptop that other devices need to find, or if you are setting up port forwarding and do not want the address to change.

On Windows, open Settings, go to Network & Internet, then Wi-Fi or Ethernet. Click your network name, then scroll down and click Edit next to IP settings. Change the dropdown from Automatic (DHCP) to Manual, then turn on IPv4. Enter an IP address in the same range as your other devices — usually something like 192.168.1.200 — and leave the subnet mask as 255.255.255.0. Click Save.

On Mac, go to System Settings, click Wi-Fi or Network, then click Details. Click the TCP/IP tab. Change the dropdown from Using DHCP to Manually. Enter an IP address in the same range as your router (usually 192.168.1.x where x is a number between 2 and 254), then click OK.

Checking your IP address on a guest or borrowed laptop

If you are using someone else's laptop or a guest device on your network, the steps are the same — you still use ipconfig on Windows or System Settings on Mac. The IP address you find belongs to that device, not to you. Each device on your network gets its own local IP address from your router.

If you are trying to find a specific device's address because it is not working properly, you can also check your router's settings. Most routers have a web interface where you can see a list of all connected devices and their IP addresses. You reach this by typing your router's IP address (usually 192.168.1.1 or 192.168.0.1) into a web browser. This list is useful if a device is not responding and you want to see whether it is actually connected.

What to do if your laptop shows no IP address or shows 169.254.x.x

If your laptop is connected to Wi-Fi but ipconfig or System Settings shows no IP address, or shows an address starting with 169.254, your router did not assign an address properly. This usually means your laptop and router are not communicating the way they should.

First, restart your laptop and wait 30 seconds after it reconnects to Wi-Fi. If the address is still missing or still starts with 169.254, forget the network and reconnect. On Windows, go to Settings > Network & Internet > Wi-Fi, click Manage known networks, find your network, and click Forget. Then click your network name again and enter the password. On Mac, go to System Settings > Wi-Fi, click the three dots next to your network, and click Forget. Then reconnect.

If that does not work, restart your router by unplugging it for 30 seconds, plugging it back in, and waiting two minutes for it to fully start up. Then reconnect your laptop. If your laptop still shows no address or a 169.254 address after these steps, contact your internet provider — the problem may be with the router itself.

Frequently Asked Questions

Can someone see my laptop's local IP address from outside my home?

No. Your local IP address only works inside your home network. Someone on the internet cannot reach your laptop using its local IP address. They would need your public IP address, and even then they can only reach your laptop if you have set up port forwarding on your router to let them in.

Why does my laptop's IP address keep changing?

Your router assigns addresses using DHCP, which means it can give your laptop a different address each time it connects. This is normal and usually does not cause problems. If you need the address to stay the same, set a static IP address in your network settings instead.

Is my IP address the same as my MAC address?

No. Your MAC address is a physical identifier built into your network card — it never changes. Your IP address is assigned by your router and can change. They serve different purposes on your network.

Do I need to know my IP address to use the internet normally?

No. Your laptop and router handle IP addresses automatically. You only need to know your IP address if you are troubleshooting a problem, setting up a service, or accessing your laptop from another device on your network.