What Your IP Address Is and Why You Need It

Your IP address is a number that identifies your device on your home network and on the internet. It looks like four numbers separated by periods — something like 192.168.1.5 or 203.0.113.42. You need to know your IP address when you're troubleshooting network problems, setting up port forwarding on your router, or giving remote support to someone who needs to access your computer.

There are two IP addresses that matter for home networks: your local IP address (the one your router assigns to your device) and your public IP address (the one your internet provider assigns to your whole household). Most of the time, you're looking for the local one — that's what you use to connect to devices inside your home network.

Key Takeaways

  • Your local IP address is a four-number sequence your router assigns to your device, and you find it through your operating system's network settings, not through your router.
  • On Windows, open Settings, go to Network & Internet, then Status, and look for "IPv4 address" in the Details section.
  • On Mac, open System Settings, click Network, select your connection, and the IP address appears in the Details button.
  • On Linux, open a terminal and type hostname -I to see your local IP address when ready.
  • Your public IP address (the one the internet sees) is different from your local one and appears on websites like whatismyipaddress.com.

Finding Your IP Address on Windows 10 and 11

The fastest way on Windows is through Settings. Click the Windows Start button, type "Settings" and open it. Then go to Network & Internet on the left side. Click Status, scroll down, and select Advanced network options.

Look for the connection you're using — either Ethernet if you're plugged in with a cable, or Wi-Fi if you're wireless. Click on it, then click the Details button. Your IPv4 address is the number you're looking for. Write it down or take a screenshot if you need it for router settings or troubleshooting.

If you prefer the command line, you can also open Command Prompt (search for "cmd" in the Start menu) and type ipconfig, then press Enter. Look for "IPv4 Address" in the output — it will be under the connection type you're using.

Finding Your IP Address on Mac

On Mac, open System Settings (not System Preferences — Apple changed the name in recent versions). Click Network on the left side. You'll see your active connection listed — either Ethernet or Wi-Fi depending on how you're connected.

Click on that connection, then click the Details button. Your IP address appears at the top under "IPv4 Address." If you don't see a Details button, your connection may not be active yet — make sure you're actually connected to your network first.

From the terminal, you can also type ifconfig | grep "inet " and press Enter. This shows all your IP addresses; look for the one that starts with 192.168 or 10.0 — that's your local address.

Finding Your IP Address on Linux

Linux is the simplest. Open a terminal window and type hostname -I (capital I), then press Enter. Your local IP address appears when ready. If you have multiple network connections, you'll see all of them listed.

If that doesn't work on your system, try ip addr show instead. Look for the line that starts with "inet" (not "inet6") under your active connection — that's your local IP address.

Understanding Local vs. Public IP Addresses

The IP address you find in your device settings is your local IP address — it only works inside your home network. If you give someone your local IP address and they try to connect from outside your house, it won't work. That's by design: your router keeps your local network separate from the internet.

Your public IP address is different. It's assigned by your internet provider and is what websites see when you visit them. To find your public IP, visit a website like whatismyipaddress.com or search "what is my IP" in any search engine. The number that appears is the one the rest of the internet sees.

For home network troubleshooting — port forwarding, accessing a network printer, or connecting to a home server — you always use the local IP address. You only need your public IP if you're setting up remote access from outside your home, and even then, your router handles most of that work for you.

What to Do If Your IP Address Keeps Changing

Your router assigns local IP addresses automatically using something called DHCP. Most of the time, your device gets the same address every time it connects. But sometimes your router reassigns addresses, which can break port forwarding or remote access setups.

If you need an IP address to stay the same, you can assign a static IP address to that device. On Windows, go back to Advanced network options, click your connection, then click Edit. Toggle on "Edit IP settings" and change from "Automatic (DHCP)" to "Manual." Enter the IP address you want to keep, along with the subnet mask (usually 255.255.255.0) and gateway (usually 192.168.1.1 or 10.0.0.1 — check your router's address).

On Mac, open System Settings, click Network, select your connection, click Details, then click the TCP/IP tab. Change "Configure IPv4" from "Automatic" to "Manual" and enter the address you want. On Linux, edit your network configuration file — the exact steps depend on your distribution, but most modern systems use NetworkManager, which you can access through your system settings.

Frequently Asked Questions

Is my local IP address the same as my public IP address?

No. Your local IP address (like 192.168.1.5) only works inside your home network. Your public IP address is what the internet sees and is assigned by your internet provider. You can find your public IP by visiting whatismyipaddress.com.

Why does my IP address change every time I restart my computer?

Your router assigns addresses automatically through DHCP. Most devices get the same address each time, but it's not may provide. If you need the address to stay the same, you can set a static IP address in your device's network settings instead of using automatic assignment.

Can someone hack me if they know my local IP address?

Not from outside your home — your router blocks incoming connections by default. Someone on your home network could potentially access your device if you've shared folders or enabled remote access, but that's a local network issue, not an internet security one.

What if I can't find the Details button on my Mac?

Make sure you're actually connected to a network first — Wi-Fi or Ethernet. If you're not connected, the Details button won't appear. Once you connect, go back to System Settings, click Network, select your active connection, and the Details button should be there.

Do I need to write down my IP address?

Only if you're setting up port forwarding, accessing a network device, or giving someone remote access instructions. For most everyday use, you don't need to know it. You can always look it up again using the same steps whenever you need it.