Finding your IP address on Windows
Your IP address is a number that identifies your device on your network — something like 192.168.1.5 or 10.0.0.3. You need it to troubleshoot connection problems, set up port forwarding, or restrict access to certain devices. On Windows, the fastest way is through the command prompt.
Open the Start menu and type cmd, then press Enter. A black window will open. Type ipconfig and press Enter. Look for the line that says "IPv4 Address" — that number is your local IP address, the one your router assigns to your computer. You will also see "Default Gateway," which is your router's address, and "Subnet Mask," which defines which devices can talk to each other directly.
If you need your public IP address instead — the one the outside world sees when you browse the internet — open any web browser and search for "what is my IP." The first result will show it. Your public IP comes from your internet service provider and changes periodically unless you pay for a static IP.
Finding your IP address on Mac
On a Mac, the easiest route is through System Settings. Click the Apple menu in the top-left corner, then select System Settings. Click Wi-Fi in the left sidebar, then click the name of your network on the right. Scroll down and you will see "IP Address" listed there.
If you are connected by Ethernet cable instead of Wi-Fi, go to System Settings, click Network, select Ethernet from the left sidebar, and look for the IP Address field. Both methods show your local IP address — the one your router assigned to your Mac.
For your public IP address, use the same method as Windows: open a web browser and search for "what is my IP." The result at the top of the page is what external websites see when you connect to them.
Finding your IP address on iPhone and iPad
On an iPhone or iPad, go to Settings, then tap Wi-Fi. Tap the name of the network you are connected to — a blue checkmark shows which one. Scroll down and you will see "IP Address" listed under the network details.
This shows only your local IP address. If you need your public IP, open Safari or any web browser and search for "what is my IP." The first result displays it. Note that your phone's local IP address changes each time you reconnect to Wi-Fi, so if you are writing it down for network setup, do it right before you use it.
Finding your IP address on Android
Android varies by manufacturer, but the general path is Settings > Wi-Fi > tap the network name > Advanced or Network Details. Look for "IP Address" in that menu. Some phones call it "IP" or "IPv4 Address."
If that path does not work on your phone, search your Settings for "IP address" — most Android phones have a search function at the top of Settings. For your public IP address, open a web browser and search for "what is my IP," the same as on other devices.
Why you need both local and public IP addresses
Your local IP address is what your router uses to send data to your device inside your home network. This is the number you need when you are setting up port forwarding, connecting a printer, or restricting which devices can access something on your network. It usually starts with 192.168 or 10.0.
Your public IP address is what websites and online services see. It comes from your internet service provider and is shared by everyone in your home — all your devices appear to the outside world as coming from that one address. This is the number that shows up in website logs and that your ISP uses to identify your account.
When you are troubleshooting a home network problem, you almost always need the local IP address. When you are checking whether a website can reach you, or when you are setting up remote access to your home computer, you need the public one.
What to do if your IP address keeps changing
Local IP addresses change when you turn your device off and back on, or when you disconnect and reconnect to Wi-Fi. If you need a device to stay at the same local IP address — for example, so a printer always appears in the same place on your network — you can assign it a static local IP through your router settings.
Log into your router by opening a web browser and typing your router's IP address (usually 192.168.1.1 or 192.168.0.1 — check the sticker on the back of your router). Look for a section called "DHCP," "Reserved IPs," or "Static IP." You will need the device's MAC address, which you can find in the same place you found the IP address. Assign the device a fixed local IP and it will keep that address even after restarting.
Your public IP address changes less often — usually every few months or when your modem restarts — but you cannot control it without paying your ISP for a static public IP service. For most home network purposes, you do not need to.
Key Takeaways
- Your local IP address (like 192.168.1.5) is what your router uses to find your device at home, and you find it through Settings on any device.
- Your public IP address is what the outside world sees, and you can find it by searching "what is my IP" in any web browser.
- Local IP addresses change when you restart or reconnect to Wi-Fi, but you can lock one in place through your router if a device needs to stay at the same address.
- You need your local IP address for home network setup like port forwarding or printer connection, and your public IP for remote access or troubleshooting external connectivity.
Frequently Asked Questions
Is my IP address the same on Wi-Fi and Ethernet?
No. If your device is connected to both at the same time, it has a separate local IP address for each connection. Most devices use only one at a time, so you will see only the active one in Settings. Your public IP address is the same regardless of which connection you use.
Can someone use my IP address to hack me?
Your public IP address is visible to any website you visit, but it alone does not let someone into your device — your router's firewall blocks incoming connections by default. Your local IP address is only visible to devices on your own network. The real risk is if you open ports through port forwarding without securing what is behind them.
Why does my IP address show a different city than where I live?
IP addresses are assigned to regions, not exact locations. Your ISP's registration data might list your account in a nearby city, or the database that maps IPs to locations might be outdated. This is normal and does not mean your connection is routed through that city.
Do I need to write down my IP address?
Only if you are setting up something specific like port forwarding or a static IP reservation. For most home network tasks, you can look it up again whenever you need it. If you do write it down, remember that local IP addresses change regularly, so the number may not be accurate a week later.