What your IP address is and why you need it

Your IP address is a number that identifies your device on your home network and on the internet. It looks like four numbers separated by dots — for example, 192.168.1.5 on your home network, or something like 203.0.113.42 on the public internet. You need to know your IP address when you're setting up network devices, troubleshooting connection problems, or configuring your router's security settings.

Every device connected to your network — your computer, phone, printer, smart TV — has its own IP address. Your router assigns these addresses automatically using something called DHCP. Knowing your device's IP address helps you understand what's happening on your network and makes it easier to fix problems when they occur.

Key Takeaways

  • On Windows, open Command Prompt and type ipconfig to see your IP address listed as "IPv4 Address".
  • On Mac, go to System Settings, click Network, select your connection, and your IP address appears under "IP Address".
  • On Linux, open a terminal and type hostname -I or ip addr to display your IP address.
  • Your local IP address (starting with 192.168 or 10.) is different from your public IP address, which you can find by searching "what is my IP" in any browser.
  • If you need a device to stay at the same IP address, you can set a static IP in your router or device settings instead of letting DHCP assign a new one each time.

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 opens. Type ipconfig and press Enter. Look for the line that says "IPv4 Address" — the number next to it is your local IP address on your home network.

If you prefer not to use Command Prompt, you can also find it through Settings. Go to Settings, click Network & Internet, then select your connection type (Wi-Fi or Ethernet). Scroll down and you'll see "IP address" listed under the connection details.

The address you see here (usually starting with 192.168 or 10.) is your local IP address — the one your router uses to talk to your device at home. This is different from your public IP address, which is what the outside internet sees.

Finding your IP address on Mac

On Mac, go to the Apple menu and click System Settings. Click Network in the left sidebar. Select the connection you're using — either Wi-Fi or Ethernet. Your IP address appears on the right side of the window, labeled "IP Address".

If you're using an older version of macOS, the path is slightly different: go to System Preferences instead of System Settings, then click Network. The information is in the same place.

You can also open Terminal and type ifconfig to see all your network information at once. Look for the line that says "inet" followed by a number — that's your IP address.

Finding your IP address on Linux

On Linux, open a terminal window. Type hostname -I and press Enter. Your IP address appears when ready. This is the simplest method and works on most Linux distributions.

If that doesn't work, try ip addr instead. This shows more detailed network information. Look for the line that starts with "inet" and is not 127.0.0.1 (that's your local loopback address, not your real IP). The number after "inet" is your IP address.

Understanding local versus public IP addresses

The IP address you find on your device is your local IP address — it only works on your home network. Your router translates between this local address and your public IP address, which is what websites and services on the internet see when you connect to them.

Your public IP address is assigned by your internet service provider. To find it, open any web browser and search for "what is my IP address" or visit a site like whatismyipaddress.com. The large number displayed is your public IP.

You need your local IP address for things like accessing your router's settings, setting up network printers, or configuring smart home devices. You need your public IP address if you're troubleshooting internet connectivity or if someone needs to connect to your computer remotely from outside your home.

Setting a static IP address if you need one to stay the same

By default, your router assigns a new IP address each time your device connects, using DHCP. If you're setting up a device that needs the same IP address every time — like a network printer or a security camera — you can set a static IP address instead.

The easiest way is through your router. Log into your router's admin panel (usually by typing 192.168.1.1 or 192.168.0.1 into a browser), find the DHCP settings, and look for an option to reserve an IP address for a specific device. You'll need the device's MAC address, which you can find in the same network settings where you found the IP address.

Alternatively, you can set a static IP directly on the device itself. On Windows, go to Settings > Network & Internet > Advanced Network Settings > IP Settings and choose Manual. On Mac, go to System Settings > Network, click Details, then TCP/IP, and change "Configure IPv4" to Manual. On Linux, edit your network configuration file (usually in /etc/netplan/ or /etc/network/interfaces depending on your distribution).

Troubleshooting when you can't find your IP address

If you don't see an IP address in your network settings, your device isn't connected to the network. Check that your Wi-Fi is turned on and you're connected to the right network, or that your Ethernet cable is plugged in securely.

On Windows, if ipconfig shows "Media disconnected" next to your connection, restart your network adapter. Go to Settings > Network & Internet > Advanced Network Settings > Network Adapter Options, right-click your connection, and click Disable, then Enable.

On Mac or Linux, try disconnecting and reconnecting to Wi-Fi, or unplug and replug the Ethernet cable. If you're still not seeing an IP address after a few seconds, restart your device and your router — turn off the router, wait 30 seconds, and turn it back on.

Frequently Asked Questions

Is my IP address the same as my MAC address?

No. Your MAC address is a hardware identifier that never changes, while your IP address is assigned by your router and can change. Both are useful for network setup, but they're different things. You'll find your MAC address in the same network settings where you find your IP address, usually labeled "Physical Address" on Windows or "MAC Address" on Mac and Linux.

Can someone hack me if they know my IP address?

Your local IP address (192.168.x.x) is only visible to devices on your home network, so it's not a security risk. Your public IP address is visible to websites you visit, but it only tells someone your general location and internet provider — it doesn't give them access to your computer. Your router's firewall blocks incoming connections by default.

Why does my IP address keep changing?

Your router assigns IP addresses using DHCP, which means they can change when your device reconnects or after a certain time period. If you need the same IP address every time, set a static IP address in your router's DHCP settings or on the device itself.

What if I see 169.254.x.x as my IP address?

This is a link-local address, which means your device couldn't get an IP from your router. Check that your router is on and working, restart your device, and make sure you're connected to the network. If the problem continues, restart your router by unplugging it for 30 seconds.