Finding Your IP Address Quickly

Your computer's IP address is a unique number that identifies it on a network — like a mailing address for data. Every device connected to the internet or a local network has one. You may need it to troubleshoot connection problems, set up a printer, access your computer remotely, or configure network settings.

The fastest way to find it depends on your operating system. Windows users can open Command Prompt and type a single command. Mac and Linux users have similar built-in tools. The whole process takes less than a minute, and you do not need special software or administrator permission in most cases.

Key Takeaways

  • Windows computers show their IP address through Command Prompt using the ipconfig command, which displays both your local network address and other connection details.
  • Mac users can find their IP address in System Settings under Network, or by opening Terminal and typing ifconfig.
  • Linux users open a terminal window and type ip addr or ifconfig to see all network addresses on the system.
  • Your computer typically has two IP addresses: a local one (starting with 192.168 or 10.0) used within your home or office network, and a public one assigned by your internet provider.
  • If you only see a local address and need your public IP, you can visit a website like whatismyipaddress.com from any web browser.

Finding Your IP Address on Windows

Open the Start menu and type Command Prompt into the search box. Click on the Command Prompt process — you do not need to run it as administrator. A black window will open with a blinking cursor.

Type ipconfig and press Enter. The window will display a list of network adapters on your computer. Look for the section labeled Ethernet if your computer is plugged into a network cable, or Wireless LAN adapter WiFi if you are connected to WiFi. Under that section, find the line that says IPv4 Address. The number next to it — usually something like 192.168.1.105 — is your local IP address.

If you see multiple network adapters listed, only the one you are currently using matters. If you are on WiFi, ignore the Ethernet section. If you are plugged in with a cable, ignore the WiFi section.

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). In the sidebar, click Network.

You will see a list of network connections on the left side. Click whichever one you are currently using — WiFi if you are on wireless, or Ethernet if you are plugged in with a cable. On the right side of the window, you will see your IP address listed next to IPv4 Address.

Alternatively, you can use Terminal for a faster method. Open Terminal (found in Applications > Utilities), type ifconfig, and press Enter. Scroll through the output to find your active connection. Under the WiFi or Ethernet section, look for the line starting with inet — the number after it is your IP address.

Finding Your IP Address on Linux

Open a terminal window. The method varies slightly depending on your Linux distribution, but the command is the same. Type ip addr and press Enter.

The output will show all network adapters on your system. Look for the section labeled eth0 (wired connection) or wlan0 (wireless connection). Under that section, find the line starting with inet. The number when ready after it — before the forward slash — is your local IP address.

If ip addr does not work on your system, try the older command ifconfig instead. The output format is slightly different, but you will still find your IP address listed under your active network adapter.

Understanding Local vs. Public IP Addresses

When you run ipconfig, ifconfig, or check System Settings, you are seeing your local IP address — the one your computer uses within your home or office network. These addresses always start with 192.168, 10.0, or 172.16. They are assigned by your router and only work on your local network.

Your public IP address is different. It is assigned by your internet service provider and is how websites and services on the internet identify your connection. You cannot see your public IP using the commands above because it lives on your router, not on your computer itself.

If you need your public IP address, open any web browser and visit whatismyipaddress.com, ipchicken.com, or search "what is my IP" in Google. The page will display your public address when ready. Your public IP may change periodically depending on your internet service provider's settings.

Common Reasons Your IP Address Matters

You need your local IP address to set up network printers, configure smart home devices, or access your computer remotely from another device on the same network. System administrators use it to troubleshoot connection problems and identify which device is causing network issues.

Your public IP address is what websites see when you visit them. It is also what you provide if someone needs to connect to your computer from outside your home network, though this usually requires additional security setup through your router.

If your computer keeps losing internet connection or cannot reach certain devices on your network, knowing your IP address helps you describe the problem to technical support or troubleshoot the issue yourself.

What to Do If the Commands Do Not Work

If you type ipconfig on Windows and nothing happens, make sure you pressed Enter after typing the command. If you see an error message saying the command is not recognized, your Command Prompt may not have access to system tools — try opening it as administrator by right-clicking the Command Prompt icon and selecting Run as administrator.

On Mac or Linux, if ifconfig or ip addr returns no results or an error, try typing hostname -I instead. This simpler command often works on systems where the others do not. If you still see nothing, your network adapter may not be active — check that you are actually connected to WiFi or have a network cable plugged in.

If you cannot use the command line for any reason, the graphical method always works: on Windows, go to Settings > Network & Internet > WiFi (or Ethernet) and scroll down to see your IP address. On Mac, use System Settings > Network as described above.

Frequently Asked Questions

Why does my IP address keep changing?

Your local IP address usually stays the same, but your public IP may change periodically — this is normal and depends on your internet service provider. If your local address changes frequently, your router may be reassigning addresses. You can set a static local IP in your router settings if you need it to stay constant.

Is it safe to share my IP address?

Sharing your public IP address is generally safe — websites already see it when you visit them. Sharing your local IP address is safe only with people on your own network. Never share either address with strangers or untrusted websites, as it could be used to attempt unauthorized access to your network.

What if I see multiple IP addresses listed?

Your computer may have multiple network adapters (WiFi, Ethernet, virtual adapters). Only the one you are actively using matters. If you are on WiFi, use the WiFi address. If you are plugged in with a cable, use the Ethernet address. Ignore the others.

Can I change my IP address?

You can change your local IP address through your router settings, though this is rarely necessary. Your public IP address is controlled by your internet service provider — you cannot change it directly, but restarting your modem may assign you a new one.

Do I need my IP address to use the internet normally?

No. Your computer gets an IP address automatically when it connects to a network. You only need to know your IP address if you are troubleshooting a problem, setting up a device, or accessing your computer remotely.