What an IP address is and why you might need to find yours

An IP address is a set of numbers that identifies your device on the internet — like a mailing address for your computer or phone. It looks like four numbers separated by periods: 192.168.1.1 (for devices on your home network) or something like 203.45.67.89 (for your connection to the wider internet). You might need to find your IP address to troubleshoot a network problem, set up a device, or understand what information a website can see about you.

There are two types: your local IP address (the one your router assigns to your device at home) and your public IP address (the one your internet service provider assigns to your whole household, visible to websites you visit). The method you use depends on which one you need.

Key Takeaways

  • Your public IP address is what websites see and can be found in seconds by visiting a site like WhatIsMyIPAddress.com or Google "what is my IP".
  • Your local IP address identifies your device within your home network and is found in your device settings or router admin page.
  • On Windows, open Command Prompt and type ipconfig; on Mac or Linux, open Terminal and type ifconfig or ip addr.
  • If you need your router's IP address to change settings, it is usually printed on a sticker on the router itself or in your router's manual.
  • Your IP address changes periodically — your public one when your modem restarts, your local one when you reconnect to Wi-Fi.

Finding your public IP address

Your public IP address is the easiest to find because it takes just a few seconds. Open any web browser and search "what is my IP" or visit a site like WhatIsMyIPAddress.com, IPChicken.com, or CanIHazIP.com. The site will display your public IP address immediately — no sign-up or download needed.

This is the address that websites, streaming services, and online games see when you connect to them. It is also the address that can be used to roughly locate your city (though not your exact street address). If you are troubleshooting a service that says it has blocked your IP, or if you need to tell someone your internet connection's address, this is the one you need.

Finding your local IP address on Windows

Your local IP address is assigned by your router and identifies your specific device on your home network. To find it on Windows, open the Command Prompt by pressing the Windows key, typing cmd, and pressing Enter.

In the Command Prompt window, type ipconfig and press Enter. A list of network information will appear. Look for the section labeled "Ethernet adapter" (if you are connected by cable) or "Wireless LAN adapter Wi-Fi" (if you are on Wi-Fi). Next to "IPv4 Address" you will see a number like 192.168.1.5 or 10.0.0.3 — that is your local IP address.

Finding your local IP address on Mac and Linux

On a Mac, open the Terminal application (found in Applications > Utilities). Type ifconfig and press Enter. Look for the section that matches your connection type — "en0" or "en1" for Wi-Fi, "en2" or higher for Ethernet. Next to "inet" you will see your local IP address.

On Linux, open a terminal and type ip addr or ifconfig (depending on your distribution). The output will show all network interfaces. Find the one you are using — usually labeled "wlan0" for Wi-Fi or "eth0" for Ethernet — and look for the line starting with "inet". The number after "inet" is your local IP address.

Finding your router's IP address

If you need to log into your router to change Wi-Fi settings, restart it, or adjust security, you will need your router's IP address. In most cases, it is printed on a sticker on the back or bottom of the router itself — look for a line that says "Default Gateway" or just an address like 192.168.1.1 or 192.168.0.1.

If the sticker is missing or unclear, you can find it through your device. On Windows, open Command Prompt, type ipconfig, and look for the line labeled "Default Gateway" — that is your router's address. On Mac, open Terminal and type netstat -nr | grep default. On Linux, type ip route and look for the line starting with "default via".

What happens when your IP address changes

Your public IP address changes when your modem restarts — either because you unplugged it, your internet service provider restarted it remotely, or a power outage occurred. Some internet service providers assign the same public IP for months or years; others change it weekly. If a service has blocked your IP address, restarting your modem may give you a new one, though this is not may provide.

Your local IP address changes when you disconnect from your Wi-Fi and reconnect, or when your router restarts. If you have set a device to use a specific local IP address (called a static IP), it will keep that address until you change it manually. Most home devices use dynamic IP addresses, which means the router assigns a new one each time they connect.

Why websites and services ask for your IP address

Websites can see your public IP address whenever you visit them — it is how they send information back to your device. Some services ask you to provide it manually for troubleshooting, to whitelist your connection (allow only certain IPs to access an account), or to diagnose connection problems. Your local IP address is only visible to devices on your home network, so websites cannot see it.

If a service asks for your IP address and you are unsure whether to provide it, remember that your public IP address is already visible to them. Providing it manually does not expose anything new. Your local IP address (like 192.168.x.x) is safe to share because it only works on your home network and is useless to someone outside it.

Frequently Asked Questions

Can someone find my home address from my IP address?

No. Your public IP address can be used to find your city and internet service provider, but not your street address. Your local IP address (192.168.x.x) is only visible on your home network and tells nothing about your location. If you are concerned about privacy, use a VPN service, which masks your public IP address.

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

IP address location databases are not perfectly accurate. They assign locations based on where the internet service provider registered the address, which may be a regional office rather than your actual city. This is normal and does not mean the database is wrong about your general area.

What should I do if a website says my IP is blocked?

First, restart your modem by unplugging it for 30 seconds and plugging it back in. This may give you a new public IP address. If the block continues, contact the website's support team to ask why your IP was blocked and how to request access. Some blocks are automatic and can be lifted by waiting a few hours or days.

Is it safe to share my public IP address?

Yes. Your public IP address is already visible to every website you visit. Sharing it with a support team or friend does not expose anything new. However, do not share your local IP address (192.168.x.x) with strangers, as it could be used to attempt to access your home network if someone is on the same network.

How do I find the IP address of another device on my network?

On Windows, open Command Prompt and type arp -a to see all devices connected to your network and their local IP addresses. On Mac, open Terminal and type arp -a. On Linux, type arp -a or ip neigh. Each device will show its local IP address next to its name or MAC address.