What your IP address is and why you might need it

Your IP address is a set of numbers that identifies your device on a network — like a mailing address for your computer. It looks like four numbers separated by dots: 192.168.1.5 or 8.8.8.8. You have two: a local IP address that identifies you within your home or office network, and a public IP address that identifies you to the wider internet.

You might need to find your IP address to troubleshoot a slow connection, set up a printer or security camera on your home network, access a device remotely, or give it to technical support. The method you use depends on which address you need and what device you're using.

Key Takeaways

  • Your local IP address (usually starting with 192.168 or 10.) identifies your device within your home network and is found in your network settings.
  • Your public IP address is what websites see and can be found instantly by visiting a site like whatismyipaddress.com or ipinfo.io.
  • On Windows, open Settings > Network & Internet > Wi-Fi or Ethernet, then select your connection to see your local IP.
  • On Mac, open System Settings > Network, select your connection, and look for the IP address field on the right side.
  • On Linux, open a terminal and type ip addr show or hostname -I to display your local IP address.

Finding your local IP address on Windows

On Windows 10 or 11, the fastest way is through Settings. Click the Start button, type "Settings" and open it. Go to Network & Internet, then select either Wi-Fi or Ethernet depending on how you're connected. Click the name of your network connection, and scroll down — your IP address appears in the details section next to "IPv4 address".

If you prefer the command line, open Command Prompt (search for "cmd" in the Start menu) and type ipconfig, then press Enter. Look for the line labeled "IPv4 Address" under your active connection — that's your local IP. This method shows all your network adapters at once, which is useful if you have multiple connections.

Finding your local IP address on Mac

Open System Settings (in newer macOS) or System Preferences (in older versions). Click Network on the left side. Select your active connection — either Wi-Fi or Ethernet — and your IP address appears on the right side of the window next to "IP Address".

From the terminal, open Applications > Utilities > Terminal and type ifconfig, then press Enter. Find the section for your active connection (usually en0 for Ethernet or en1 for Wi-Fi) and look for the line starting with "inet" — the numbers after that are your local IP address.

Finding your local IP address on Linux

Open a terminal window and type ip addr show, then press Enter. Your local IP address appears next to "inet" for each network adapter. Look for the one labeled "UP" to find your active connection. Alternatively, type hostname -I and press Enter for a simpler output showing just the IP addresses.

If you're using an older Linux system, you may need to type ifconfig instead. The output is similar — look for "inet addr:" to find your local IP. Both commands show the same information; the newer ip command is preferred on modern distributions.

Finding your public IP address

Your public IP address is what the internet sees when you visit a website. The simplest way to find it is to visit a website that displays it for you. Open any web browser and go to whatismyipaddress.com, ipinfo.io, or myip.com. Your public IP address appears immediately on the page — no login or download needed.

You can also find your public IP from the command line. On Windows, open Command Prompt and type curl ifconfig.me (if curl is installed) or visit one of the websites above. On Mac or Linux, open a terminal and type curl ifconfig.me or dig +short myip.opendns.com @resolver1.opendns.com, then press Enter. Your public IP appears in the output.

Understanding the difference between local and public IP addresses

Your local IP address is assigned by your router and only works within your home or office network. It typically starts with 192.168, 10., or 172.16. This is the address you use when connecting to devices like printers, security cameras, or network storage on your own network. If you move to a different network, your local IP changes.

Your public IP address is assigned by your internet service provider and is visible to every website you visit. It's the same whether you're accessing email, streaming video, or checking the weather. Websites use it to send data back to you, and it's also what determines your approximate location for services like weather apps or content restrictions. Your public IP can change if you restart your router or if your ISP reassigns it, though many home connections keep the same public IP for months or years.

Why your IP address might change

Your local IP address can change if you restart your router, reconnect to the network, or if your router's settings are configured to reassign addresses regularly. Most home routers use DHCP (Dynamic Host Configuration Protocol), which automatically assigns local IP addresses and may change them periodically. If you need a device to keep the same local IP — for example, to set up port forwarding for a security camera — you can assign it a static IP address in your router's settings, though this requires accessing your router's admin panel.

Your public IP address changes less often but can shift if you restart your modem, if your ISP performs maintenance, or if you're on a mobile network. Some ISPs assign the same public IP for years; others rotate them monthly. If you need a stable public IP for remote access or hosting, you can contact your ISP about a static public IP, though this usually costs extra and is more common for business accounts.

Frequently Asked Questions

Is my IP address the same on Wi-Fi and Ethernet?

Your local IP addresses are usually different — your router assigns separate addresses to Wi-Fi and Ethernet connections. Your public IP is the same regardless of which connection you use, since it's assigned by your ISP to your entire home network. If you need to know both, check your network settings while connected to each one.

Can someone find me using my IP address?

Your public IP can be used to find your approximate location (usually your city or region, not your exact address) and to identify your ISP. It cannot reveal your home address, name, or phone number without additional information. Your local IP address only works within your own network and is not visible to the internet.

Why do I have multiple IP addresses listed?

If you see several addresses when you run ipconfig or ifconfig, you likely have multiple network adapters — for example, Wi-Fi, Ethernet, and a virtual adapter. Look for the one labeled "UP" or "active" to find your current connection. The others are either inactive or used for specific purposes like virtual machines.

What if I can't find my IP address in Settings?

Make sure you're connected to a network first — your device won't have a local IP if Wi-Fi or Ethernet is turned off. If you're connected but don't see an address, try restarting your device or reconnecting to the network. If the problem continues, your router may not be assigning addresses correctly, and you may need to restart it.