Where your IP address lives and how to see it
Your IP address is a number your device uses to talk to other devices on your network and the internet. It's assigned automatically by your router, and you can find it in a few places depending on what you're trying to do: see your device's own address, see your router's address, or see what the outside world sees when you connect.
The fastest way depends on your device. On Windows, you open Command Prompt and type a single command. On Mac or Linux, you open Terminal and type another. On a phone or tablet, you dig into network settings. On your router itself, you log in through a web browser. Each method takes less than a minute once you know where to look.
Key Takeaways
- Your device's local IP address (the one your router assigned) is found in network settings on Windows, Mac, phone, or tablet, or by typing a command in Command Prompt or Terminal.
- Your router's IP address is usually printed on a sticker on the back of the router itself, or you can find it in your device's network settings.
- Your public IP address (what websites see) can be found by visiting a site like whatismyipaddress.com from any device on your network.
- You need your router's IP address to log in and change settings like your Wi-Fi password or port forwarding rules.
- Your device's local IP address matters when you're troubleshooting network problems or setting up devices that need to talk to each other.
Finding your device's local IP address on Windows
On Windows, the fastest way is through Command Prompt. Press the Windows key, type cmd, and press Enter. A black window opens. Type ipconfig and press Enter. Look for the line that says "IPv4 Address" under your network connection — that's your local IP address, usually something like 192.168.1.100 or 10.0.0.50.
If you prefer not to use Command Prompt, you can also find it in Settings. Go to Settings, then Network & Internet, then Wi-Fi (or Ethernet if you're plugged in). Click on your network name, scroll down, and look for "IPv4 address" in the DNS settings section.
Finding your device's local IP address on Mac
On Mac, open System Preferences (or System Settings on newer versions), then click Network. Select your Wi-Fi or Ethernet connection from the left side. Your IP address appears on the right side of the window, labeled "IP Address."
You can also use Terminal if you prefer the command line. Open Terminal (find it in Applications > Utilities), type ifconfig, and press Enter. Look for the line that says "inet" under your active connection — that's your local IP address.
Finding your IP address on phones and tablets
On an iPhone or iPad, go to Settings, then Wi-Fi. Tap the network you're connected to (the one with a checkmark). Your IP address appears under "IP Address" in the list of details.
On Android, go to Settings, then Wi-Fi. Long-press the network you're connected to and tap "Manage." Your IP address appears under "IP address" in the Advanced section. Some Android phones put this in a different spot — if you don't see it, look for "Network details" or "Advanced" in your Wi-Fi settings.
Finding your router's IP address
Your router's IP address is usually printed on a sticker on the back or bottom of the router itself. Look for a line that says "Gateway" or "Router Address" — it's typically 192.168.1.1 or 192.168.0.1. If the sticker is worn off or missing, you can find it in your device's network settings.
On Windows, open Command Prompt, type ipconfig, and look for the line labeled "Default Gateway" — that's your router's address. On Mac, open System Preferences > Network, select your connection, and look for "Router" in the details. On a phone, go to your Wi-Fi settings, tap your network, and look for "Router" or "Gateway" in the advanced details.
Once you have your router's IP address, you can type it into any web browser's address bar to log in and change your Wi-Fi password, set up port forwarding, or adjust other network settings. You'll need the router's username and password, which are also usually on that sticker.
Finding your public IP address
Your public IP address is what websites and internet services see when you connect. It's assigned by your internet service provider and is usually different from your local IP address. To find it, visit whatismyipaddress.com, whatismyip.com, or similar sites from any device on your network. The page displays your public IP address when ready.
Your public IP address changes periodically — sometimes daily, sometimes weekly, depending on your internet service provider. If you need it to stay the same for things like remote access or hosting a service, you can contact your provider about a static IP address, though this usually costs extra.
Why you need to know where your IP address is
Knowing how to find your IP address helps you troubleshoot network problems. If a device won't connect to another device on your network, you might need to check both devices' local IP addresses to make sure they're on the same network. If you're setting up port forwarding or remote access, you need your public IP address or your router's address.
You also need your router's IP address to log in and change settings. If someone else is using your Wi-Fi and you want to change the password, or if you want to set up a guest network, you log in through your router's address in a web browser. Without knowing where to find it, you're stuck.
Frequently Asked Questions
What's the difference between my local IP address and my public IP address?
Your local IP address is assigned by your router and is only used on your home network — devices on your network use it to find each other. Your public IP address is assigned by your internet service provider and is what the internet sees when you connect. Websites log your public IP, not your local one.
Why does my IP address keep changing?
Most internet service providers assign IP addresses dynamically, meaning they change periodically — sometimes daily, sometimes weekly. If you need the same IP address all the time, contact your provider about a static IP, though this usually costs extra per month.
Is it safe to share my IP address?
Your public IP address is visible to every website you visit, so it's not secret. However, don't share it publicly on forums or social media. Your local IP address should never be shared — it's only for devices on your own network. Your router's IP address and password should be kept private.
Can I change my IP address?
Your local IP address can be changed through your router's settings, but most people don't need to. Your public IP address changes on its own over time. If you want to change your public IP when ready, you can restart your modem and wait a few minutes, though the new address is assigned by your provider.
What if I can't find my router's password to log in?
If you've forgotten your router's password, you can reset the router to factory settings by holding down the reset button (usually a small hole on the back) for 10 to 15 seconds. This erases all your settings, including your Wi-Fi password, so you'll have to set everything up again from scratch.