What an IP address is and why you need to know yours

Your IP address is a set of numbers that identifies your device on your home network and the internet. It looks like four numbers separated by dots — for example, 192.168.1.5 on your home network, or something like 203.0.113.42 on the wider internet. You need to know your IP address when you're troubleshooting network problems, setting up port forwarding, or checking which devices are connected to your router.

Every device connected to your network has its own IP address. Your phone, laptop, smart TV, and printer each get one. When you're trying to figure out why something isn't connecting, or you need to log into your router's settings, knowing your device's IP address is often the first step.

Key Takeaways

  • Your local IP address (the one on your home network) starts with 192.168 or 10.0 and is different from your public IP address (the one the internet sees).
  • On Windows, open Command Prompt and type ipconfig to see your local IP address listed as "IPv4 Address".
  • On Mac, go to System Settings, click Network, select your connection, and look for "IP Address" in the details.
  • On iPhone or Android, open Settings, go to Wi-Fi or Network settings, tap your connected network, and the IP address appears in the connection details.
  • Your public IP address (what websites see) is different from your local one and can be found by searching "what is my IP" in any browser.

Finding your IP address on Windows

The fastest way on Windows is through Command Prompt. Press the Windows key, type cmd, and open Command Prompt. Type ipconfig and press Enter. Look for the line that says "IPv4 Address" — that's your local IP address on your home network. It will be something like 192.168.1.100.

If you prefer not to use Command Prompt, you can also find it through Settings. Open Settings, go to Network & Internet, click Wi-Fi or Ethernet depending on how you're connected, then select your active connection. Scroll down and you'll see "IPv4 address" listed there.

Finding your IP address on Mac

On Mac, open System Settings and click Network in the sidebar. Select the connection you're using — either Wi-Fi or Ethernet. Your IP address appears in the details section, labeled as "IP Address". It will show your local network address, typically starting with 192.168 or 10.0.

If you're using an older version of macOS, the path is slightly different: go to System Preferences instead of System Settings, then Network. The information is in the same place once you're there.

Finding your IP address on iPhone or Android

On iPhone, open Settings, tap Wi-Fi, and select the network you're connected to. Your IP address appears under the network name in the connection details.

On Android, open Settings and go to Network & Internet or Connections (the exact name varies by phone maker). Tap Wi-Fi, select your connected network, and tap it again to see the details. Your IP address is listed there, usually labeled as "IP address" or "IPv4 address".

Understanding local versus public IP addresses

The address you find in your device settings is your local IP address — the one your router assigns to that specific device on your home network. This address stays the same most of the time, but your router can change it if you restart or if the device disconnects and reconnects.

Your public IP address is different. It's what websites and internet services see when you connect to them. To find your public IP, open any web browser and search for "what is my IP". The first result will show you a number like 203.0.113.42. This is the address your internet service provider assigns to your home connection, and it's what the outside internet uses to reach you.

You need your local IP address for home network tasks like logging into your router or setting up port forwarding. You need your public IP address if you're troubleshooting why a website can't reach you, or if you're setting up remote access to something at home.

What to do if your IP address keeps changing

If you notice your device's local IP address changes every time you restart or reconnect, your router is using DHCP (Dynamic Host Configuration Protocol). This is the default setting on most home routers and is fine for everyday use. However, if you're setting up port forwarding or need a device to stay at the same address, you can assign it a static IP address instead.

To do this, you'll need to log into your router's settings (usually by typing your router's IP address into a browser — often 192.168.1.1 or 192.168.0.1). From there, you can either set a static IP in the router's DHCP settings, or configure the device itself to use a fixed address. The exact steps depend on your router model, but most router manuals walk through this process.

Checking which devices are on your network

If you want to see all the IP addresses of devices currently connected to your home network, you can log into your router. Open a browser and type your router's IP address (usually 192.168.1.1 or 192.168.0.1). Log in with your router's username and password — these are often printed on a sticker on the router itself, or in the manual that came with it.

Once you're logged in, look for a section called "Connected Devices", "DHCP Clients", or "Device List". This shows every device on your network along with its IP address. This is useful if you're trying to figure out what device is using a lot of bandwidth, or if you notice something connected that shouldn't be there.

Frequently Asked Questions

Is my IP address the same as my MAC address?

No. Your IP address is a number that identifies your device on a network (like 192.168.1.5). Your MAC address is a different identifier that's built into your device's network hardware. Both are useful for different reasons, but they're separate things.

Can someone use my IP address to hack me?

Your local IP address (the one on your home network) is only visible to other devices on that same network, so it's not a direct security risk. Your public IP address is visible to websites, but it doesn't give someone direct access to your device or data. However, it's still good practice to keep your router find with a strong password and keep its software updated.

Why does my IP address show a different location than where I actually am?

IP addresses are assigned by region, so your public IP address is associated with a general location — often the city where your internet service provider's equipment is located, not where you actually are. This is why location services on websites sometimes seem off. Your device's GPS or location settings are more accurate for your actual position.

Do I need to write down my IP address?

You don't need to memorize it, but it's helpful to know how to find it quickly. If you're setting up port forwarding or troubleshooting, you'll look it up in the moment. If a device needs a static IP, you'll set that up once in your router settings and then it stays the same.