What an IP Address Is and Why You Might Need It

An IP address is a unique number assigned to your computer on a network. It looks like four numbers separated by dots — for example, 192.168.1.5 — and it works like a mailing address for data traveling to and from your machine. You might need to find it to troubleshoot network problems, set up a printer or router, connect to a remote computer, or give technical support to someone helping you.

Every device connected to a network has an IP address. Your computer actually has two: a local IP address (the one on your home or office network) and a public IP address (the one your internet provider assigns, visible to websites you visit). Most of the time, you need the local one.

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 "IP Address" in the details pane.
  • On Linux, open a terminal and type hostname -I to display your local IP address.
  • Your local IP address usually starts with 192.168 or 10.0 and is different from your public IP address, which websites see.
  • If you need your public IP address, visit a website like whatismyipaddress.com or type "what is my ip" into a search engine.

Finding Your IP Address on Windows

The fastest way on Windows is through Command Prompt. Press the Windows key and type cmd, then press Enter. A black window will open. Type ipconfig and press Enter. Your computer will display a list of network information.

Look for the section labeled with your network connection name (usually "Ethernet" if you use a cable, or "Wireless LAN adapter" if you use Wi-Fi). Under that section, find the line that says "IPv4 Address" — the number next to it is your local IP address. It will look something like 192.168.1.105. Write it down or take a screenshot if you need it later.

If you prefer not to use Command Prompt, you can also find it through Settings. Open Settings, go to Network & Internet, select your connection type (Wi-Fi or Ethernet), and look for "IP address" in the details. This method takes a few more clicks but shows the same information.

Finding Your IP Address on Mac

On Mac, the easiest route is through System Settings. Click the Apple menu in the top-left corner and select System Settings. In the sidebar, click Network. You will see a list of connection types on the left — select the one you are using (Wi-Fi or Ethernet).

On the right side of the window, you will see connection details. Look for the line that says "IP Address" — the number next to it is your local IP address. If you do not see it when ready, you may need to click "Details" or scroll down in the information pane.

An older method that still works is to open System Preferences (or System Settings on newer Macs), click Network, select your active connection, and look for the IP address field. Both methods show the same information; use whichever feels more natural to you.

Finding Your IP Address on Linux

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

If that command does not work, try ifconfig instead. This will show more detailed network information. Look for the section labeled with your connection name (often "eth0" for Ethernet or "wlan0" for Wi-Fi). Under that section, find the line starting with "inet" — the number after it is your local IP address.

Understanding Static vs. Dynamic IP Addresses

Your local IP address can change. Most home networks use dynamic IP addresses, which means your computer gets a new one each time you restart or reconnect to the network. This usually happens automatically and you do not need to do anything about it.

If you need your computer to always have the same IP address — for example, to set up port forwarding or remote access — you can assign a static IP address through your router settings. This is more advanced and requires logging into your router's admin panel, but it prevents the address from changing. Your router's instruction manual or support page will explain how to do this for your specific model.

Finding Your Public IP Address

Your public IP address is what websites see when you visit them. It is different from your local IP address and is assigned by your internet provider. To find it, visit any IP-checking website such as whatismyipaddress.com, myip.com, or iplocation.net. These sites will display your public IP address when ready when you load the page.

You can also find it by typing "what is my ip" into any search engine. Google and other search engines will show your public IP address at the top of the results. This is the address you would give someone if they asked for your IP for troubleshooting purposes over the internet.

Common Mistakes to Avoid

Do not confuse your local IP address with your public IP address. Your local address (starting with 192.168 or 10.0) only works on your home or office network. Your public address is what the outside internet sees. If someone asks for your IP address for remote support, ask them whether they need the local or public one — most of the time they need the public one.

Do not worry if your local IP address changes after you restart your computer. This is normal and expected on most home networks. If you need it to stay the same, you can set a static address, but for everyday use, the changing address causes no problems.

If you type the commands above and see nothing, make sure you pressed Enter after typing the command. Also check that you spelled the command correctly — ipconfig on Windows is case-insensitive, but on Mac and Linux, commands are case-sensitive, so hostname -I must have a capital I.

Frequently Asked Questions

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

That range is reserved for private networks. Your router automatically assigns addresses in this range to devices on your home or office network. Other common ranges are 10.0 and 172.16. These ranges are never used on the public internet, which is why your local address is different from your public one.

Can someone find my computer using my IP address?

Your local IP address only works on your own network, so someone outside your home cannot use it to reach you. Your public IP address can be seen by websites, but it points to your internet connection, not directly to your computer. A firewall and router settings provide additional protection.

What if I cannot find the IP address using these steps?

Make sure you are looking at the correct network connection — if you use Wi-Fi, look under the Wi-Fi section, not Ethernet. If you are using a VPN, your IP address may be hidden or different. Restart your computer and try again. If the problem continues, your network may not be set up correctly, and you may need to check your router or contact your internet provider.

Is my IP address the same as my MAC address?

No. Your MAC address is a different identifier used only on your local network. Your IP address is used for routing data across networks. Both are useful for different purposes, but they are not the same thing.