Your PC has an IP address right now — here's where to find it

Your IP address is a set of numbers that identifies your computer on a network, the same way a street address identifies a house. Every device connected to the internet or a local network has one. You might need it to troubleshoot a connection problem, set up a printer on your home network, access your computer remotely, or give it to technical support. The steps to find it depend on whether you use Windows, Mac, or Linux.

The address you will find is your local IP address — the one your router assigns to your computer for use only on your home or office network. This is different from your public IP address, which is what the internet sees. For most tasks, you need the local one.

Key Takeaways

  • Windows users can find their IP address by opening Command Prompt and typing ipconfig, then looking for the line labeled "IPv4 Address".
  • Mac users should go to System Settings, click Network, select their connection, and look for the IP address listed in the details pane.
  • Linux users can open a terminal and type hostname -I to see their IP address immediately.
  • Your IP address may change if you restart your router or computer, so write it down if you need it for a specific task.
  • The address you see usually starts with 192.168 or 10.0 and is used only on your home or office network, not the address the internet sees.

Finding your IP address on Windows

The fastest way on Windows is through 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 about your network connections. Look for the section labeled with your connection type — usually "Ethernet adapter" if you are plugged in with a cable, or "Wireless LAN adapter" if you are on Wi-Fi. Under that section, find the line that says IPv4 Address. The number next to it (something like 192.168.1.5) is your IP address. Write it down if you need it.

If you prefer not to use Command Prompt, you can also find it through Settings. Open Settings, go to Network & Internet, then select your connection type (Ethernet or Wi-Fi). Click on the connection name, scroll down, and you will see "IPv4 address" listed under the details. Both methods show the same information — use whichever feels more comfortable.

Finding your IP address on Mac

On Mac, the graphical method is simpler than the command line. Click the Apple menu in the top left, then select System Settings. In the sidebar, click Network.

You will see a list of connection types on the left (Wi-Fi, Ethernet, etc.). Click the one you are currently using. On the right side, you will see a button labeled Details or information displayed directly. Look for the line labeled IP Address — that is the number you need. It will look similar to Windows addresses, usually starting with 192.168 or 10.0.

If you want to use the terminal instead, press Command + Space, type terminal, and press Enter. Type ifconfig and press Enter. Find your connection in the output (usually en0 for Ethernet or en1 for Wi-Fi) and look for the line starting with "inet" — the number after that is your IP address. The terminal method gives you more detailed information if you need it.

Finding your IP address on Linux

Linux users typically use the terminal. Open your terminal application (the exact name varies by distribution, but it is usually called Terminal or Konsole). Type hostname -I and press Enter. Your IP address will appear immediately.

If that does not work, try ifconfig or ip addr instead. Both will show more detailed network information. Look for the section labeled with your connection name (eth0 for Ethernet, wlan0 for Wi-Fi) and find the line starting with "inet" — the number after that is your IP address. Different Linux distributions may use slightly different commands, so trying all three will cover most systems.

Understanding local versus public IP addresses

The address you just found is your local IP address — it identifies your computer only on your home or office network. It usually starts with 192.168, 10.0, or 172.16. This is different from your public IP address, which is what websites and internet services see when you connect to them. Your public IP is assigned by your internet service provider and is shared by all devices on your network.

For most troubleshooting tasks — setting up a printer, accessing a computer on your home network, or giving information to tech support about your local setup — you need the local IP address you just found. If you need your public IP address instead, you can find it by searching "what is my IP" in any web browser. The two serve completely different purposes, and mixing them up is a common source of confusion.

What to do if your IP address changes

Your local IP address can change if you restart your router, restart your computer, or if your router's settings reassign addresses. This is normal and happens automatically. If you need a stable IP address for a specific task — like always accessing a printer at the same address — you can set a static IP in your router settings or your computer's network settings. This tells your router to always give that device the same address.

For most everyday use, the changing address does not matter. But if you are setting up a device that needs to be found at a specific address, write down the current IP and check your router's manual or settings to see how to make it permanent. Your router's manual will have the exact steps, since the process varies by manufacturer. Many routers also have a web interface where you can manage which devices get permanent addresses.

When you might need your IP address

Technical support may ask for your IP address to help diagnose connection problems or to confirm which device on your network they are helping you with. If you are setting up a network printer, you may need to enter the printer's IP address into your computer. If you want to access your computer remotely from another device, you will need its IP address. Some games or applications that run on a local network also need IP addresses to find each other.

In most cases, you only need the local IP address — the one you found using the steps above. Keep it handy if you are about to do any of these tasks, but do not worry about memorizing it. You can always find it again in a few seconds using the same method, so there is no need to stress about losing the information.

Frequently Asked Questions

Why does my IP address start with 192.168 instead of something else?

Addresses starting with 192.168, 10.0, or 172.16 are reserved for private networks — they are used only inside homes and offices, never on the public internet. Your router automatically assigns these to your devices. This is normal and expected.

Is my IP address the same as my MAC address?

No. Your IP address is a number that identifies your device on a network and can change. Your MAC address is a permanent identifier built into your network hardware. They serve different purposes, and you usually only need the IP address.

Can someone harm my computer if they know my IP address?

Knowing your local IP address alone is not a security risk — anyone on your home network can see it. Your public IP address is visible to websites you visit, but it does not directly expose your computer to attack. Standard security practices like firewalls and keeping software updated protect you far more than hiding your IP.

What if ipconfig or ifconfig does not show any IP address?

This usually means your device is not connected to a network. Check that your Wi-Fi is turned on or your Ethernet cable is plugged in. Restart your router and try again. If you still see no address, your network connection may need troubleshooting.

Do I need my IP address to connect to Wi-Fi?

No. Your device gets an IP address automatically after you connect to Wi-Fi using the password. You only need the IP address if you are trying to access the device from somewhere else or set up a network service.