How Do I Find a Computer's IP Address on Windows, Mac, Linux

Share
A laptop computer sits open on a desk in a home office.

If you need your computer’s IP address right now, check the active Wi-Fi or Ethernet connection in your network settings and read the IPv4 address. If you’re connecting to a device on the same network, you usually want the local/private IP address. If you’re telling a website or remote service the address it sees from the internet, you want the public IP instead.

Do you need the computer’s local IP or its public IP?

The local IP address is the one your computer uses on your home, office, or school network. It usually looks like 192.168.x.x, 10.x.x.x, or 172.16.x.x through 172.31.x.x. Devices on the same network use this address to talk to each other, so this is the one you want for a printer, game console, file sharing, or most app troubleshooting on the same network.

The public IP address is the one your router or VPN shows to the internet. It’s the address a website or remote service may see. If you’re setting up remote access from outside your home, checking what address a website sees, or confirming your internet connection’s outward-facing address, look for the public one.

A quick rule:

  • Home printer, TV, console, NAS, or another device on your network: use the local IP.
  • Website, remote login, or a service asking for the address seen from outside: use the public IP.

If you’re connected to a VPN, the address you see may change again, because the VPN can give your computer a different network address than your normal connection.

Before you start

  • You need access to the computer itself.
  • If you want the public IP address, you need a web browser or access to the router’s status page.
  • If you want the local IP address, you need to be connected to Wi-Fi or Ethernet.
  • If you’re using a VPN, know that it can change the address you see.

Find the IP address on Windows

The quickest way is through the Settings app, where you can see the address for the network you’re actually using. If your computer is on Wi-Fi, check the Wi-Fi section. If it’s plugged in, check Ethernet.

  1. Open Settings.
  2. Go to Network & internet.
  3. Click Wi-Fi if you’re wireless, or Ethernet if you’re wired.
  4. Select the network connection that says you’re connected.
  5. Look for IPv4 address or IP address in the details.

If you prefer a command, Command Prompt is often faster:

ipconfig
Command Prompt

Look for the adapter that matches your active connection, such as Wireless LAN adapter Wi-Fi or Ethernet adapter Ethernet. Under it, find IPv4 Address. That is usually the local IP address you want. If you see several adapters, ignore ones that say disconnected or virtual unless you know you need them.

If you’re connected through a VPN, the active adapter may be named after the VPN rather than Wi-Fi or Ethernet. In that case, the address shown there may belong to the VPN tunnel, not your normal home network.

If you’re on Wi-Fi, Ethernet, or a VPN, the active connection is the one that matters. The address for Wi-Fi will not match the address for Ethernet if only one of them is in use, and a VPN can show a separate address altogether.

A person looks at a Windows laptop computer while checking the Wi-Fi connection.

Find the IP address on a Mac

On a Mac, the local IP address appears in the network details for the connection you’re using. Start with Wi-Fi if you’re wireless, or Ethernet if you’re on a cable.

  1. Open System Settings.
  2. Click Network.
  3. Select Wi-Fi or Ethernet, depending on how you’re connected.
  4. Click the connected network name or the details button next to it.
  5. Look for IP Address or IPv4 Address in the network information.

If you want a quicker check, you can also use the Network details panel from the sidebar and read the address there. The number you want is usually the IPv4 address, not the longer IPv6 line.

If you use both Wi-Fi and Ethernet, the active one is the one to check. If a VPN is connected, macOS may show a separate network entry for it, and that address can be different from the one your home router assigned.

To avoid a mix-up, compare the address against the connection name. If the network panel shows Wi-Fi, use the address under Wi-Fi. If it shows Ethernet, use the wired address. If it shows your VPN, that is the VPN address, not your normal local network address.

A person uses a MacBook laptop computer at a desk in a quiet room.

Find the IP address on Linux

On Linux, the easiest method is usually a terminal command. Different distributions may show slightly different wording, but the address is the same idea: the local IPv4 address for the active interface.

Open a terminal and run:

ip address
Linux shell

Look for your active interface, such as wlan0, wifi0, enp3s0, or something similar. Under that section, find a line that starts with inet. The number after inet is the IPv4 address. It may look like 192.168.1.24/24. The part before the slash is the address.

If your system uses a different network tool, you may also see similar output from ifconfig or from your desktop’s network panel. The exact command can vary a little by distribution, but the address you’re looking for is still the one tied to the active Wi-Fi or wired interface.

If you are connected through a VPN, the terminal may show both the normal interface and the VPN interface. Use the one that matches the network you actually need.

If you’re not sure which interface is active, look for the one with inet under it and a name that matches your connection, such as wireless, wired, or VPN.

A person types on a laptop computer running Linux at a desk.

If you only need your public IP address

The simplest way to see your public IP is to search the web for “what is my IP” and read the result. That shows the address the internet sees, which may be different from the local address on your computer.

You can also check your router’s status page if you have access to it. Many routers show the internet-facing address in their status or WAN section. That address belongs to the router or VPN endpoint, not to your computer directly.

This difference matters. Say your computer shows 192.168.1.24 in network settings. That is a local address inside your home. A website may show a different public address, because your router shares one internet-facing address for all the devices on your network.

If you’re on a VPN, the public IP may reflect the VPN server instead of your home connection. That can be normal.

If you need to tell someone the right number, make sure you say whether you mean the local IP or the public IP. Those are different addresses, and using the wrong one is the most common mistake.

How to tell you found the right address

A correct local IP address usually fits the format of a private network address, not the router’s own address. Most home networks use addresses in one of these ranges: 192.168.x.x, 10.x.x.x, or 172.16.x.x through 172.31.x.x.

A few common mix-ups:

  • The router address often ends in .1, such as 192.168.1.1. That is usually the gateway, not your computer.
  • IPv6 addresses are much longer and contain colons, like fe80::.... They are valid, but many devices and setup screens still ask for IPv4.
  • VPN addresses can look different from your normal home address, because the VPN creates its own network path.

If you see more than one address, match it to the active connection. For Wi-Fi, use the Wi-Fi adapter’s IPv4 address. For Ethernet, use the wired adapter’s IPv4 address. If you’re telling someone the number, it helps to say which connection it belongs to, such as “my Wi-Fi IP is 192.168.1.24.”

A quick check: if the address is in a private range, it is usually the local address. If it looks like the router’s gateway address, or if it’s the long colon-separated IPv6 format, double-check before you share it.

If the computer doesn’t show an IP address

If there’s no IP address, or you see a self-assigned address like 169.254.x.x, the computer usually isn’t getting an address from the network.

Start with these checks:

  • Make sure Wi-Fi is connected or the Ethernet cable is plugged in.
  • Confirm the network adapter is enabled.
  • Turn off and back on the Wi-Fi or Ethernet connection.
  • Disconnect from a VPN if you only need your normal local network address.
  • Restart the computer and, if needed, the router or modem.

A 169.254.x.x address usually means the computer tried to get an address from DHCP but didn’t receive one. That can happen if the router is having trouble, the cable is bad, the network is paused, or the adapter isn’t talking to the network correctly.

If you still don’t get a valid address after reconnecting, check whether other devices on the same network are working. If they are, the issue is probably on the computer’s side. If none of them are getting addresses, the router or network service is more likely the cause.

Conclusion

Once you know whether you need the local or public address, the rest is straightforward: check the active Wi-Fi or Ethernet connection and read the IPv4 address. If the number starts with a private range like `192.168` or `10`, that’s usually the local address you need. If you’re still stuck, compare the address against the active adapter and watch for router, VPN, or IPv6 mix-ups before you share it. If the computer shows `169.254.x.x` or nothing at all, fix the connection first, then check again.

Frequently Asked Questions

Is my IP address the same as my router’s address?

Usually no. Your router often has a gateway address like `192.168.1.1`, while your computer gets its own local address from that router, such as `192.168.1.24`.

Why do I see both IPv4 and IPv6 addresses?

Many computers have both. If a setup screen or person asks for an IP address and doesn’t say IPv6, they usually want the IPv4 address.

Does a VPN change my IP address?

Yes, it can. A VPN may show a different network address to apps and websites, and sometimes even to your own system tools.