Your IP address is a number assigned to your computer that identifies it on a network

Your computer's IP address works like a mailing address for data. When you visit a website or send an email, your computer uses this address so responses know where to come back to. Every device connected to the internet has one — your phone, laptop, printer, smart TV. You have two types: one for your home network (called a local or private IP) and one for the wider internet (called a public or external IP). Most of the time you do not need to know either one, but there are moments when you do — troubleshooting a connection, setting up a printer on your home network, or checking if your location is being tracked.

Key Takeaways

  • Your private IP address (like 192.168.1.5) identifies your computer only within your home network, while your public IP address (like 203.45.67.89) is how the internet sees you.
  • On Windows, open Command Prompt and type ipconfig to see your private IP; on Mac, open Terminal and type ifconfig to find the same information.
  • To find your public IP address, visit a site like whatismyipaddress.com or simply search "what is my IP" in any search engine.
  • Your private IP usually stays the same on your home network, but your public IP can change when you restart your modem or router.

Finding your private IP address on Windows

Your private IP is the address your computer uses only within your home network — to talk to your printer, your router, or other devices in your house. To find it on Windows, open the Command Prompt. Press the Windows key, type cmd, and press Enter. A black window will open.

Type ipconfig and press Enter. You will see a list of information. Look for the section labeled "Ethernet adapter" (if you are plugged in with a cable) or "Wireless LAN adapter" (if you are on WiFi). Next to "IPv4 Address" you will see a number that looks like 192.168.1.5 or 10.0.0.15. That is your private IP address. Write it down if you need it for a specific task, like setting up a printer or troubleshooting a connection.

Finding your private IP address on Mac

On a Mac, open Terminal. You can find it by clicking the Spotlight icon (magnifying glass) in the top right corner, typing terminal, and pressing Enter. A white window will open with a command prompt.

Type ifconfig and press Enter. You will see several blocks of text. Look for a section that starts with en0 or en1 (these refer to your network connection). Within that section, find the line that says "inet" followed by a number like 192.168.1.10 or 10.0.0.20. That is your private IP address. If you are on WiFi, look for the section labeled en0 first; if you are plugged in with Ethernet, it may be labeled differently depending on your Mac model.

Finding your public IP address

Your public IP is what the internet sees when you visit a website or send data outside your home network. It is assigned by your internet service provider (ISP) and changes less often than you might think — usually only when you restart your modem or router, or when your ISP decides to reassign it.

The easiest way to find your public IP is to open any web browser and search for what is my IP. Google will show your public IP address right at the top of the search results. Alternatively, you can visit a dedicated site like whatismyipaddress.com or ipchicken.com, and your public IP will display immediately. You do not need to download anything or enter any personal information — these sites simply show you what your internet connection is broadcasting.

Why your IP address changes and when it matters

Your private IP address usually stays the same as long as your computer stays connected to your home network. Your public IP address is more likely to change. Every time you restart your modem or router, your ISP may assign you a new public IP. Some ISPs change your public IP automatically every few months as part of their standard practice. If you have a business or run a server from home, you might pay extra for a static IP — one that does not change — but most home users get a dynamic IP that shifts occasionally.

For most everyday tasks, these changes do not matter. But if you are setting up remote access to your computer, hosting a game server, or running security software that tracks your location, knowing your IP address and whether it is stable becomes important. If you notice your public IP has changed and you are having trouble connecting to something, that is often the reason.

What to do if you cannot find your IP address

If the Command Prompt or Terminal commands do not show an IP address, or if you see an address starting with 169.254, your computer is not properly connected to the network. Check that your WiFi is turned on or your Ethernet cable is plugged in firmly. Restart your router by unplugging it for 30 seconds, then plugging it back in. Wait a minute for it to fully restart, then try the commands again.

If you still see no IP address after reconnecting, your router may not be assigning addresses correctly. Restart your computer as well. If the problem continues, contact your internet service provider — they can check whether your modem is working properly and whether your account is active.

How your IP address relates to privacy and location

Your public IP address can be used to estimate your general location — usually to the city or region level, rarely to your exact street. Websites you visit can see your public IP, and so can the services you use. This is why some people use a VPN (virtual private network) when browsing — a VPN masks your real public IP and shows a different one instead, making it harder for websites to track your location or identify your internet provider.

Your private IP address is only visible to devices on your home network, so it carries no privacy risk outside your house. However, if someone gains access to your home network, they can see all the private IP addresses of your devices. This is one reason to use a strong WiFi password and to keep your router's firmware updated.

Frequently Asked Questions

Is my IP address the same as my MAC address?

No. Your MAC address is a hardware identifier that only works on your local network; your IP address is what lets you communicate across the internet. Every device has both. You rarely need to know your MAC address unless you are troubleshooting network hardware or setting up advanced router features.

Can someone find me using my IP address?

Your public IP can reveal your general location (city or region) and your internet provider, but not your street address or name. If you are concerned about location tracking, use a VPN when browsing, or check your router settings to see which devices are connected and what they are doing.

Why does my IP address keep changing?

Your ISP assigns dynamic IP addresses that change periodically — sometimes after a modem restart, sometimes on a schedule. If you need a stable IP for a specific purpose, contact your ISP about upgrading to a static IP, which usually costs extra per month.

Do I need to memorize my IP address?

No. You only need to find and note your IP address when you are doing something specific — setting up a printer, troubleshooting a connection, or configuring remote access. For everyday internet use, you do not need to know it at all.