How to find your PC's IP address

Your computer has an IP address right now — a unique number that identifies it on your network. You may need this address to troubleshoot connection problems, set up a printer, access your computer remotely, or help a tech support person diagnose an issue. The steps to find it depend on whether you use Windows, Mac, or Linux, but the process takes less than a minute on any system.

The easiest method on any computer is to search for "IP address" in your system settings or use a command-line tool. Both approaches show you the same information: your local IP address (the one your home or office network uses) and sometimes your public IP address (the one the internet sees). Most of the time you need the local address, which starts with 192.168, 10.0, or 172.16.

Key Takeaways

  • Windows users can find their IP address by opening Settings, going to Network & Internet, and selecting your connection type to view the details.
  • Mac users can open System Preferences, click Network, select their active connection, and read the IP address shown in the window.
  • Linux users can open a terminal and type ip addr or ifconfig to see all network addresses on the system.
  • Your local IP address usually starts with 192.168, 10.0, or 172.16 and is the one you need for most home and office tasks.
  • If you need your public IP address instead, you can find it by searching "what is my IP" in any web browser.

Finding your IP address in Windows 10 and 11

Open the Settings app by pressing the Windows key and typing "Settings," then press Enter. Click Network & Internet in the left sidebar.

If you are connected by ethernet cable, click Ethernet. If you are using Wi-Fi, click Wi-Fi. Then click the name of the network you are currently connected to. A panel will open showing your connection details. Scroll down to find IPv4 address — this is your local IP address. It will look something like 192.168.1.105.

If you do not see the network name you expect, you may not be connected. Check that your ethernet cable is plugged in or that Wi-Fi is turned on. If you are still stuck, try the command-line method described below.

Finding your IP address on Mac

Click the Apple menu in the top-left corner and select System Preferences (or System Settings on newer Macs). Click Network.

On the left side, you will see a list of connection types. Click whichever one has a green dot next to it — that is your active connection. If you see Wi-Fi with a green dot, click that. If you see Ethernet with a green dot, click that instead. Once you select it, your IP address will appear on the right side of the window, labeled IP Address.

If no connection has a green dot, your Mac is not currently connected to a network. Check that Wi-Fi is turned on or that your ethernet cable is plugged in, then try again.

Finding your IP address in Linux

Open a terminal window. On most Linux systems, you can right-click the desktop and select Open Terminal, or press Ctrl+Alt+T.

Type the following command and press Enter:

ip addr

You will see a list of all network connections on your system. Look for the one labeled inet (not inet6). The number next to it is your local IP address. It will look something like 192.168.1.105. If you have multiple connections, the one you are actually using will be listed under the connection name that is currently active — usually eth0 for ethernet or wlan0 for Wi-Fi.

If ip addr does not work, try ifconfig instead. Type it the same way and press Enter. The output is formatted differently but contains the same information — look for inet and the IP address next to it.

Understanding local versus public IP addresses

The address you just found is your local IP address — the one your home or office network uses to identify your computer. This is the address you need when you are setting up a printer on your network, accessing your computer from another device at home, or troubleshooting connection problems with a tech support person.

Your public IP address is different. It is the address the internet sees when you browse websites or send email. Your router handles the translation between the two. You rarely need your public IP address, but if you do, you can find it by opening any web browser and searching for "what is my IP." The first result will show your public address.

Do not confuse the two. If someone asks for your IP address to help you troubleshoot, they almost always mean your local address — the one that starts with 192.168, 10.0, or 172.16. Your public address changes periodically and is shared with your internet provider, so there is no security risk in sharing it.

What to do if you cannot find your IP address

If you followed the steps above and still do not see an IP address, your computer is probably not connected to a network. Check that your ethernet cable is plugged into both your computer and your router, or that Wi-Fi is turned on and you are connected to a network name you recognize.

If you are connected but still do not see an address, your network may not be working properly. Restart your router by unplugging it for 30 seconds, then plugging it back in. Wait two minutes for it to fully restart, then try the steps above again.

If you still have no luck, your network adapter driver may need to be updated. On Windows, open Device Manager by pressing the Windows key and typing "Device Manager," then look for Network adapters. Right-click the adapter listed there and select Update driver. On Mac, restart your computer and try again. On Linux, consult your distribution's documentation for driver updates.

Saving your IP address for later

Once you have found your IP address, write it down or take a screenshot. Your local IP address usually stays the same, but it can change if your router restarts or if you move to a different network. If you need it again, you can always follow these steps to find it.

If you want your IP address to never change, you can set up a static IP address in your router settings. This is useful if you are setting up a device that other computers need to find regularly, like a printer or a home server. Most routers have a setting called DHCP reservation or static IP in their admin panel. Consult your router's manual or contact your internet provider for instructions specific to your model.

Frequently Asked Questions

Is my IP address the same as my MAC address?

No. Your IP address is a number that identifies your computer on a network (like 192.168.1.105). Your MAC address is a different identifier that is built into your network hardware. You rarely need your MAC address unless you are setting up advanced network features like MAC filtering or wake-on-LAN.

Can someone hack me if they know my IP address?

Your local IP address is only visible to other devices on your home or office network, so sharing it with someone on the same network is safe. Your public IP address is visible to websites you visit, but it does not directly expose your personal information or let someone access your computer without additional security vulnerabilities.

Why does my IP address keep changing?

Your router assigns IP addresses automatically using a system called DHCP. When your computer reconnects to the network or your router restarts, it may receive a different address. If you need the address to stay the same, you can set up a static IP or DHCP reservation in your router settings.

What if I see multiple IP addresses on my computer?

You may have multiple network connections active at once — for example, both ethernet and Wi-Fi. Each one gets its own IP address. Use the address for whichever connection you are actually using. If you are not sure which one is active, check your network settings to see which connection shows a green dot or "connected" status.

Do I need my IP address to connect to the internet?

Your computer needs an IP address to communicate on a network, but you do not have to find it yourself. Your router assigns one automatically when you connect. You only need to look it up if you are troubleshooting a problem or setting up a specific device or service.