What an IP address is and why you need to know yours
Your IP address is a number that identifies your device on your network and the internet — like a mailing address for data. It looks like four numbers separated by periods: 192.168.1.5 (for devices on your home network) or something like 203.45.67.89 (for your connection to the internet). You need to know your IP address to troubleshoot network problems, set up port forwarding for gaming or streaming, access your router's settings, or give technical support someone a way to reach your device.
Every device connected to your network has its own IP address. Your phone, laptop, printer, and smart TV each get one. Your router itself also has an IP address — usually something like 192.168.1.1 — and that's the address you use to log in and change your network settings.
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 all your device's IP addresses in seconds.
- On Mac, go to System Settings, click Network, select your connection, and look for the IP address field.
- On iPhone or Android, open Settings, find your Wi-Fi or mobile connection, and tap it to see the IP address assigned to that device.
- Your router's IP address is almost always 192.168.1.1 or 192.168.0.1, and you can find it by typing one of these into your browser's address bar.
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. You will see a list of all your network connections. Look for the line that says IPv4 Address — that is your local IP address on your home network. If you are connected to Wi-Fi, it will be under the section labeled "Wireless LAN adapter" or similar. If you are plugged in with an ethernet cable, look under "Ethernet adapter".
The address you see (something like 192.168.1.42) is your local IP address — the one your router uses to talk to your device. This is what you need if you are setting up port forwarding, accessing a printer on your network, or giving someone else a way to reach your computer from another device in your house.
If you want to see your public IP address — the one the internet sees when you browse — open any web browser and search for "what is my IP" or visit a site like whatismyipaddress.com. Your public IP address is assigned by your internet service provider and changes periodically.
Finding your IP address on Mac
On Mac, open System Settings (or System Preferences on older versions). Click Network in the sidebar. Select the connection you are using — either Wi-Fi if you are wireless or Ethernet if you are plugged in. Your local IP address appears in the main panel, usually labeled IP Address. It will look like 192.168.1.something.
If you want more detail, click the Advanced button at the bottom right. You will see additional information including your subnet mask and router address (called the default gateway). The default gateway is your router's IP address — the one you would type into a browser to access your router's settings.
Finding your IP address on iPhone and Android
On iPhone, open Settings, tap Wi-Fi, and tap the name of the network you are connected to. Scroll down and you will see your IP address listed. It will start with 192.168 or 10.0.
On Android, open Settings, go to Network and Internet or Connections (the exact name varies by phone), tap Wi-Fi, tap the network you are connected to, and look for IP Address or IP Configuration. Your address will be displayed there. If you are using mobile data instead of Wi-Fi, your IP address is assigned by your phone carrier and is not part of your home network — you will not need it for home network troubleshooting.
Finding your router's IP address
Your router's IP address is almost always 192.168.1.1 or 192.168.0.1. To confirm which one yours uses, open a web browser and type one of these addresses into the address bar (not the search bar — the actual address bar where you type URLs). If the first one does not work, try the second. You will be taken to your router's login page, where you can enter your router's username and password to change settings like your Wi-Fi password or port forwarding rules.
If neither address works, you can find your router's address through the same steps you used to find your device's IP address. On Windows, look for the line that says Default Gateway in the ipconfig output. On Mac, it is labeled Router in the Network settings. On iPhone or Android, it is usually listed as Router or Gateway in the Wi-Fi details. Type that address into your browser's address bar.
The difference between local and public IP addresses
Your local IP address (192.168.x.x or 10.0.x.x) is only used inside your home network. It is how your router talks to your devices and how your devices talk to each other. This is the address you need when you are setting up a printer, accessing a security camera, or configuring port forwarding.
Your public IP address is what the rest of the internet sees. It is assigned by your internet service provider and is the same for your entire household — all your devices share it when they connect to the internet. Websites see your public IP, not your local one. Your public IP changes periodically (sometimes daily, sometimes monthly, depending on your provider), while your local IP usually stays the same until you restart your router or your device.
What to do if your IP address keeps changing
If your device's local IP address changes every time you restart your router or reconnect to Wi-Fi, your router is using DHCP (Dynamic Host Configuration Protocol) — the default setting. This is normal and usually not a problem for everyday use. However, if you are setting up port forwarding or need your device to stay at the same address, you can assign a static IP address through your router's settings.
To do this, log into your router (using the address 192.168.1.1 or 192.168.0.1), find the DHCP or Local Network settings, and look for an option to reserve an IP address or set a static assignment for your device. You will need your device's MAC address (a unique identifier that looks like 00:1A:2B:3C:4D:5E). Once you set a static address, that device will always get the same local IP when it connects to your network.
Frequently Asked Questions
Is my IP address the same as my MAC address?
No. Your MAC address is a hardware identifier that never changes — it is burned into your device's network card. Your IP address is assigned by your router and can change. Think of your MAC address as your device's serial number and your IP address as its current location on the network.
Can someone hack me if they know my IP address?
Knowing your public IP address alone is not enough to hack you. Your router's firewall blocks incoming connections by default. However, if you open ports for gaming, streaming, or remote access, someone could potentially reach those open ports. Keep your router's firmware updated and only open ports you actually need.
Why do I have multiple IP addresses listed in ipconfig?
If you are connected to both Wi-Fi and ethernet, or if you have a VPN running, you will see multiple addresses. Each network connection gets its own IP. The one you need depends on which connection you are using — look under the section for the connection type you are actually using.
What if I cannot access my router at 192.168.1.1?
Try 192.168.0.1 instead. If neither works, check your router's manual or the sticker on the back of the device — it usually lists the default address. You can also find it by looking at the Default Gateway in ipconfig (Windows) or Router in Network settings (Mac).