Your IP address is in your network settings, and the fastest way to find it depends on your operating system

Your computer's IP address is a unique number that identifies it on your network and the internet. It looks like four numbers separated by periods — for example, 192.168.1.5 on a local network, or something like 203.45.67.89 on the public internet. You may need this number to troubleshoot connection problems, set up a printer or security camera, or configure network devices.

The location of this information varies slightly between Windows, Mac, and Linux, but all three operating systems show it in their network settings. You can also find it instantly using a command-line tool on any system.

Key Takeaways

  • Windows users can find their IP address in Settings > Network & Internet > Wi-Fi (or Ethernet), then select their connection and scroll to "IP address".
  • Mac users open System Settings > Network, select their active connection, and look for the IP address listed on the right side of the window.
  • Linux users can open a terminal and type ip addr or hostname -I to see all IP addresses on the system.
  • On any operating system, you can open a command prompt or terminal and type ipconfig (Windows) or ifconfig (Mac and Linux) to see your IP address instantly.
  • Your local IP address (starting with 192.168 or 10.) is different from your public IP address, which your internet provider assigns to your home or office.

Finding your IP address in Windows 10 and 11

Open the Settings app by pressing the Windows key and typing "Settings", then select the Settings icon. Click Network & Internet on the left side of the window.

If you are connected by Wi-Fi, click Wi-Fi, then click the name of the network you are currently connected to. Scroll down to the "IP settings" section and you will see your IPv4 address listed there. If you are connected by ethernet cable, click Ethernet instead and look for the same section.

You can also right-click the network icon in the bottom-right corner of your taskbar, select Network and Internet settings, and follow the same steps. This method works the same way in both Windows 10 and Windows 11.

Finding your IP address on Mac

Click the Apple menu in the top-left corner and select System Settings (or System Preferences on older versions). Click Network in the sidebar on the left.

Select your active connection — either Wi-Fi or Ethernet depending on how you are connected. On the right side of the window, you will see your IP address listed next to "IP Address". If you do not see it immediately, click the Details button to expand more information.

On older Macs running macOS Monterey or earlier, the process is identical except the menu is called System Preferences instead of System Settings.

Finding your IP address on Linux

Open a terminal window. The fastest way is to press Ctrl+Alt+T on most Linux distributions, or search your applications menu for "Terminal".

Type ip addr and press Enter. You will see a list of all network connections on your computer. Look for the connection you are using — usually labeled eth0 for ethernet or wlan0 for Wi-Fi — and find the line that starts with "inet". The number after "inet" is your IPv4 address.

Alternatively, type hostname -I and press Enter for a simpler output that shows only your IP addresses.

Using the command line on any operating system

The fastest method on any system is to open a command prompt or terminal and type a single command. On Windows, press the Windows key, type "cmd", and press Enter to open Command Prompt. Type ipconfig and press Enter. Look for "IPv4 Address" in the output — this is your local IP address.

On Mac or Linux, open a terminal and type ifconfig and press Enter. Look for the connection you are using and find the line that starts with "inet". The number after "inet" is your IP address.

This method shows your information in seconds and is useful if you need to check your IP address frequently or troubleshoot network problems with technical support.

Understanding local versus public IP addresses

Your computer actually has two IP addresses: a local IP address and a public IP address. The local address — the one you find in your settings — is used only within your home or office network. It usually starts with 192.168, 10., or 172.16. This is the address you need when connecting to a printer, security camera, or other device on your own network.

Your public IP address is assigned by your internet service provider and is how the rest of the internet identifies your home or office. You can find your public IP address by visiting a website like whatismyipaddress.com or by searching "what is my IP" in any search engine. Your public IP address is different from your local one and changes periodically depending on your internet provider's policies.

For most everyday tasks — setting up devices at home, troubleshooting connection problems, or configuring your router — you need your local IP address, not your public one.

What to do if you cannot find your IP address

If you do not see an IP address in your network settings, your computer may not be connected to a network. Check that your Wi-Fi is turned on or that your ethernet cable is plugged in. Wait a few seconds for the connection to establish, then refresh the network settings page.

If you are connected but still do not see an IP address, try restarting your computer and your router. Unplug your router for 30 seconds, plug it back in, and wait for it to fully restart before checking your settings again. If the problem continues, your router may not be assigning addresses correctly, and you may need to restart the router's configuration or contact your internet service provider.

Frequently Asked Questions

Why do I need to know my IP address?

You need your IP address to set up devices like printers, security cameras, or smart home equipment on your network. You may also need it to troubleshoot connection problems with technical support, to access your computer remotely, or to configure your router's settings.

Is my IP address the same every time I turn on my computer?

Your local IP address usually stays the same, but it can change if your router restarts or if you do not connect for a long time. Your public IP address changes periodically — sometimes weekly, sometimes monthly — depending on your internet provider. If you need a permanent address for a device, you can set a static IP address in your router settings.

Can someone use my IP address to hack me?

Your local IP address is only visible to devices on your own network, so it is not a security risk by itself. Your public IP address is visible to websites you visit, but it only identifies your location roughly and does not give someone direct access to your computer. Firewalls and other security measures on your router and computer provide the real protection.

What is the difference between IPv4 and IPv6?

IPv4 addresses use four numbers separated by periods (like 192.168.1.5), while IPv6 addresses use longer strings of letters and numbers separated by colons (like 2001:0db8:85a3:0000:0000:8a2e:0370:7334). Most home networks still use IPv4, but IPv6 is becoming more common. Your computer may have both addresses at the same time.

How do I set a static IP address so it does not change?

You can assign a static IP address to your computer through your router's settings, not through your computer itself. Log into your router's admin panel (usually by typing 192.168.1.1 into a web browser), find the DHCP or local network settings, and look for an option to reserve an IP address for your computer's MAC address. The exact steps vary by router model.