Finding your IP address depends on your operating system

Your computer has an IP address right now — it's the number your device uses to connect to the internet and to other devices on your network. You may need this number to troubleshoot connection problems, set up a printer, access your router, or help a tech support person diagnose an issue. The steps to find it are different depending on whether you use Windows, Mac, or Linux, but none of them take more than a minute.

The address you're looking for is usually a number like 192.168.1.5 or 10.0.0.42 — these are called private IP addresses because they only work on your home or office network. Your computer also has a public IP address (the one websites see when you visit them), but that one is harder to find and usually not what you need for local troubleshooting.

Key Takeaways

  • Windows users can find their IP address by opening Command Prompt and typing ipconfig, then looking for the number next to "IPv4 Address".
  • Mac users should open System Settings, click Network, select their connection, and look for the IP address listed there.
  • Linux users can open a terminal and type ip addr or ifconfig to see all network addresses on the system.
  • Your private IP address starts with 192.168, 10.0, or 172.16 and only works on your local network, not the internet.
  • If you see multiple IP addresses listed, look for the one next to your active connection — usually Ethernet or Wi-Fi.

Finding your IP address on Windows

Open the Start menu and type cmd into the search box. Click on "Command Prompt" when it appears. A black window will open with a blinking cursor.

Type ipconfig and press Enter. You'll see a list of information about your network connections. Look for the section labeled with your connection type — either "Ethernet adapter" if you're plugged in with a cable, or "Wireless LAN adapter" if you're on Wi-Fi. In that section, find the line that says "IPv4 Address" followed by a colon. The number after that colon is your IP address. It will look something like 192.168.1.105.

If you see multiple adapters listed and aren't sure which one is active, look for the one that has an IPv4 Address listed. Adapters that aren't in use won't show an address.

Finding your IP address on Mac

Click the Apple menu in the top-left corner of your screen and select "System Settings" (or "System Preferences" on older versions). Look for "Network" in the left sidebar and click it.

You'll see a list of connection types on the left side. Click whichever one you're currently using — "Wi-Fi" if you're wireless, or "Ethernet" if you're plugged in with a cable. On the right side of the window, you'll see detailed information about that connection. Look for the line that says "IP Address" — the number next to it is what you need. It will look something like 192.168.1.50.

If you're not sure which connection is active, look for the one with a green dot next to its name, or the one that shows "Connected" underneath it.

Finding your IP address on Linux

Open a terminal window. The method varies by desktop environment, but you can usually right-click on the desktop and select "Open Terminal," or search for "Terminal" in your applications menu.

Type ip addr and press Enter. You'll see output showing all network interfaces on your system. Look for the section labeled "inet" (not "inet6") under the connection you're using. The number after "inet" is your IP address. Alternatively, you can type ifconfig if the ip command doesn't work on your system — look for "inet addr:" in the output.

If you see multiple interfaces listed, look for the one labeled "lo" (loopback) — that's your computer talking to itself and not what you need. Your actual network connection will have a different name like "eth0" for Ethernet or "wlan0" for Wi-Fi.

Understanding what the numbers mean

An IP address is four numbers separated by periods, like 192.168.1.42. Each number can be anywhere from 0 to 255. The first one or two numbers tell you which network the device is on, and the last one or two identify your specific computer within that network.

Most home networks use addresses that start with 192.168 or 10.0. These are called private IP addresses — they only work on your local network and can't be used on the internet. If you see an address starting with something else, like 172.16, that's still a private address; it just means your network is set up differently.

The reason you see your private IP address instead of your public one is that your router sits between your computer and the internet. When you visit a website, your router translates your private address into your public address so the website knows where to send the information back. Your private address is what you need for almost all local troubleshooting — connecting to a printer, accessing your router's settings, or helping someone on your network find your computer.

What to do if you can't find your IP address

If you followed the steps above and don't see an IP address listed, your computer probably isn't connected to the network. Check that your Wi-Fi is turned on, or if you're using an Ethernet cable, make sure it's plugged in firmly on both ends — into your computer and into the router or wall jack.

If you're connected but still don't see an address, restart your computer. Sometimes the network connection gets stuck and needs to be reset. After restart, run the commands again.

If you're on a network you don't control — like at work or school — and the steps above show no address, contact your IT department or network administrator. Some networks are set up in ways that hide this information from regular users.

Finding your public IP address

Your public IP address is different from the private one you just found. It's the address that websites see when you visit them. To find it, open any web browser and search for "what is my IP address" or "my IP." Several websites will show you the number immediately — you don't need to click anything or enter any information.

You usually don't need your public IP address for local troubleshooting, but it can be useful if you're setting up remote access to your computer or if someone is helping you diagnose an internet problem. Your public IP address changes periodically — sometimes daily, sometimes weekly, depending on your internet provider — so don't write it down expecting it to stay the same.

Frequently Asked Questions

Why do I see multiple IP addresses when I run these commands?

Your computer may have more than one network connection active at the same time. For example, you might be connected to Wi-Fi and also have an Ethernet cable plugged in. Each connection gets its own IP address. Look for the one next to the connection type you're actually using — if you're on Wi-Fi, find the Wi-Fi adapter's address and ignore the Ethernet one.

Is it safe to share my IP address with someone?

Your private IP address is safe to share — it only works on your local network and doesn't expose you to the internet. Your public IP address is less sensitive than a password or credit card number, but it's still information you should only give to people you trust or to official support channels. Websites already know your public IP address just from you visiting them.

Will my IP address change if I restart my computer?

Usually not. Your router assigns your computer the same private IP address each time you connect, unless your router is set up to change them frequently. Public IP addresses change more often — sometimes daily — depending on your internet provider, but that's not something you control.

What if the IP address starts with 169.254?

That means your computer couldn't get an address from your router. Check that your Wi-Fi is on and you're connected to the right network, or if you're using a cable, make sure it's plugged in all the way. Restart your computer and try again.