What an IP Address Is and Why You Might Need It

Your computer's IP address is a unique number that identifies it on a network — like a mailing address for data. It looks like four numbers separated by periods (for example, 192.168.1.5). You might need to find it to troubleshoot internet problems, set up a printer or router, connect to a work network, or give technical support to someone helping you.

There are two types: your local IP address (the one your home or office network uses) and your public IP address (the one the wider internet sees). Most of the time, you need the local one. Finding either takes less than a minute once you know where to look.

Key Takeaways

  • On Windows, open Command Prompt and type ipconfig to see your local IP address listed as "IPv4 Address".
  • On Mac, go to System Settings, click Network, select your connection, and look for the IP address shown on the right side.
  • On Linux, open a terminal and type hostname -I to display your local IP address.
  • Your public IP address (what websites see) can be found by searching "what is my IP" in any web browser.
  • Write down your local IP address if you need it for setup or troubleshooting, since it may change if your router restarts.

Finding Your IP Address on Windows

The fastest way on Windows is to use Command Prompt. Click the Start button, type cmd, and press Enter. A black window will open. Type ipconfig and press Enter.

Look for the section labeled "Ethernet adapter" or "Wireless LAN adapter" — whichever one you use to connect to the internet. 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. You can also see your gateway (the router's address) and other network details in the same section.

If you prefer not to use Command Prompt, you can also find it through Settings. Open Settings, go to Network & Internet, click on your connection type (Wi-Fi or Ethernet), and scroll down to see your IP address listed under "Properties".

Finding Your IP Address on Mac

On Mac, the graphical method is usually easiest. Click the Apple menu in the top left, select System Settings, then click Network on the left sidebar. Select the connection you are using (Wi-Fi or Ethernet) from the list. On the right side of the window, you will see your IP address displayed next to "IP Address".

If you want to use the terminal instead, click the Spotlight icon (magnifying glass) in the top right, type terminal, and press Enter. In the terminal window, type ifconfig and press Enter. Look for the section that matches your connection type and find the line starting with "inet" — the number after it is your local IP address.

Finding Your IP Address on Linux

On Linux, open a terminal window. The keyboard shortcut is often Ctrl+Alt+T, though this varies by distribution. Type hostname -I and press Enter. Your local IP address will appear on the next line.

If that command does not work, try ip addr show instead. This will display more detailed information. Look for the section labeled with your connection name (often eth0 for wired or wlan0 for wireless). The IP address appears after "inet" on that line.

Finding Your Public IP Address

Your public IP address is what websites and services on the internet see when you connect to them. It is different from your local IP address and changes based on your internet service provider and router. To find it, open any web browser and search for "what is my IP" or "my IP address". The first result will show your public IP in large text.

You can also visit websites like whatismyipaddress.com or ipinfo.io, which will display your public IP along with your approximate location and other details. This is the address you would give to someone outside your home network who needs to connect to your computer remotely.

When Your IP Address Changes and What to Do About It

Your local IP address can change if your router restarts, if you move to a different network, or if your router's settings are configured to reassign addresses regularly. This is usually not a problem for everyday use, but if you are setting up a printer, game console, or other device that needs a fixed address, you may want to make the address static (permanent).

To do this, you typically log into your router's settings page (usually by typing your router's IP address into a web browser — often 192.168.1.1 or 192.168.0.1). From there you can reserve a specific IP address for your computer. Your router's manual or the manufacturer's website will have exact steps, since the process varies by router model.

Troubleshooting If You Cannot Find Your IP Address

If the commands above 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 ethernet cable is plugged in or that you are connected to the correct Wi-Fi network. Restart your router by unplugging it for 30 seconds, then plugging it back in.

If you are still not seeing an address after reconnecting, your network adapter drivers may need updating. On Windows, right-click the Start button, select Device Manager, find Network adapters, and check for any devices with a warning symbol. On Mac or Linux, restart your computer and try again. If the problem persists, contact your internet service provider or network administrator.

Frequently Asked Questions

Is my IP address the same as my MAC address?

No. Your MAC address is a different identifier used only on your local network, while your IP address is used across networks. You will not need your MAC address for most tasks, but some routers use it to identify devices.

Can someone find my home address from my IP address?

Your IP address reveals your approximate location (usually your city or region) and your internet service provider, but not your street address. Websites and services can see your public IP, but it does not expose your home location with precision.

Why do I see two different IP addresses when I search online?

The address you find in Command Prompt or System Settings is your local IP (used within your home network). The address you find by searching "what is my IP" is your public IP (what the internet sees). Both are correct — they serve different purposes.

Do I need to write down my IP address?

Only if you are setting up a device that needs a fixed address, like a printer or security camera. For most everyday tasks, you can look it up again whenever you need it using the same steps.

What if my IP address starts with 192.168 or 10.0?

Those are standard private IP ranges used by home and office networks. They are normal and expected. Any address starting with those numbers is a local IP, not a public one.