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 — either your home Wi-Fi or the internet. It looks like four numbers separated by dots, such as 192.168.1.5 (for a local network) or something like 203.45.67.89 (for the wider internet). You need this number when you're troubleshooting a connection problem, setting up a printer or security camera on your home network, or giving technical support to someone who needs to access your machine remotely.

Every device connected to a network has an IP address. Your computer actually has two: a local IP address that only works inside your home or office network, and a public IP address that the rest of the internet sees. Most of the time, you'll be looking for the local one.

Key Takeaways

  • Your local IP address appears in your network settings and is usually a number starting with 192.168 or 10.
  • Windows users can find it fastest by typing "ipconfig" into Command Prompt and looking for "IPv4 Address".
  • Mac users open System Preferences, go to Network, and select their active connection to see the IP address listed there.
  • Linux users can type "ip addr" or "ifconfig" into the terminal to see all network addresses at once.
  • Your public IP address (the one the internet sees) is different from your local one and can be found on websites like whatismyipaddress.com.

Finding Your IP Address in Windows

The fastest way in Windows is through Command Prompt. Press the Windows key, type "cmd" into the search box, and press Enter. A black window will open.

Type ipconfig and press Enter. You'll see a list of information. Look for the section labeled "Ethernet adapter" or "Wireless LAN adapter" — whichever one you're using to connect. Under that section, find the line that says "IPv4 Address". The number next to it is your local IP address. It will usually start with 192.168 or 10.

If you prefer not to use Command Prompt, you can also find it through Settings. Open Settings, go to Network & Internet, select Wi-Fi or Ethernet depending on how you're connected, then click on your active network. Scroll down and you'll see "IPv4 address" listed there.

Finding Your IP Address on a Mac

On a Mac, open System Preferences (or System Settings on newer versions). Click Network in the left sidebar.

You'll see a list of connection types on the left — Wi-Fi, Ethernet, or others. Click whichever one shows a green dot next to it, meaning it's active. On the right side of the window, your IP address will be displayed next to "IP Address". This is your local IP address on your network.

If you want to use the terminal instead, open Applications > Utilities > Terminal and type ifconfig, then press Enter. Look for the section labeled "inet" under your active connection — the number next to it is your IP address.

Finding Your IP Address in Linux

Open a terminal window. Type ip addr and press Enter. You'll see output showing all your network connections. Look for the section labeled "inet" under the connection you're using (usually "eth0" for Ethernet or "wlan0" for Wi-Fi). The number next to "inet" is your local IP address.

If that command doesn't work on your system, try ifconfig instead. The layout is similar — find your active connection and look for the "inet" line.

Understanding What You're Looking At

When you run these commands, you'll see more than just your IP address. You'll also see your subnet mask (usually something like 255.255.255.0), your gateway (the address of your router), and sometimes your DNS servers (the computers that translate website names into numbers). For most purposes, you only need the IP address itself.

The numbers you see starting with 192.168, 10, or 172.16 are private IP addresses — they only work inside your local network. If you need your public IP address (the one the internet sees when you visit a website), that's different. You can find it by visiting a website like whatismyipaddress.com in your web browser, or by searching "what is my IP" in any search engine.

Common Reasons Your IP Address Might Change

Your local IP address can change if you restart your router, if your computer reconnects to the network, or if your router's settings are configured to assign new addresses regularly. This is normal and usually not a problem. If you need an IP address to stay the same — for example, to set up port forwarding for a game server or to access a printer — you can assign a static IP address in your router's settings, but that's a separate process beyond the scope of finding your current address.

Your public IP address changes less often, usually only when you restart your modem or after several days of inactivity. Your internet service provider assigns it, and you don't control it directly.

Frequently Asked Questions

Is my IP address the same as my MAC address?

No. Your MAC address is a different identifier that only works on your local network. Your IP address works across the internet. Both are useful for different purposes, but they're completely separate numbers.

Why do I see multiple IP addresses when I run ipconfig or ifconfig?

You're seeing addresses for each network connection your computer has — Wi-Fi, Ethernet, virtual connections, and others. Use the one that corresponds to how you're actually connected to the network right now. If you're on Wi-Fi, look under the Wi-Fi section; if you're plugged in with an Ethernet cable, look under Ethernet.

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

Knowing your public IP address alone is not enough to harm your computer — it's like knowing someone's street address. They would still need to find an open port and exploit a vulnerability. Your firewall (which Windows, Mac, and Linux all have built-in) blocks most attempts. Your local IP address is even safer because it only works inside your home network.

What if I can't find the IPv4 address in my network settings?

Make sure you're looking at the right connection. If you're connected by Wi-Fi, click the Wi-Fi section, not Ethernet. If you see "IPv6 address" but not "IPv4 address", your network is using the newer IPv6 standard instead — that number works the same way, just in a different format.