Finding your IP address takes less than a minute on any operating system

Your computer has an IP address right now — a unique number that identifies it on your network and the internet. You may need to find it to troubleshoot a connection problem, set up a printer, access your computer remotely, or give it to technical support. The steps differ slightly depending on whether you use Windows, Mac, or Linux, but all three methods are straightforward and require no special tools.

The fastest way is usually through your system settings or a command-line tool. You will see two numbers: your local IP address (the one your home or office network uses) and your public IP address (the one the internet sees). Most of the time you need the local one.

Key Takeaways

  • Windows users can find their local IP address in Settings under Network & Internet, or by typing ipconfig in Command Prompt.
  • Mac users can open System Settings, go to Network, select their connection, and look for the IP address field.
  • Linux users can open a terminal and type hostname -I or ip addr to see their local IP address.
  • Your local IP address starts with 192.168, 10, or 172.16 and is what you need for most home and office tasks.
  • Your public IP address is what websites see and can be found by searching "what is my IP" in any browser.

Finding your IP address in Windows

Open Settings and select Network & Internet. On the left side, click WiFi if you are connected wirelessly, or Ethernet if you are plugged in with a cable. Click the name of your network connection. Scroll down to the IP settings section and look for IPv4 address — that is your local IP address.

If you prefer the command line, right-click the Start button and select Terminal (Admin) or Command Prompt (Admin). Type ipconfig and press Enter. Look for the line that says IPv4 Address under your active connection. The number will look like 192.168.1.100 or similar.

Finding your IP address on Mac

Click the Apple menu and select System Settings. Click Network on the left. Select your active connection — either WiFi or Ethernet depending on how you are connected. Your IP address appears in the details pane on the right, labeled IP Address.

You can also use the terminal if you prefer. Open Applications > Utilities > Terminal. Type ifconfig | grep inet and press Enter. Look for the line that starts with inet (not inet6) under your active connection. The number after inet is your local IP address.

Finding your IP address in Linux

Open a terminal window. Type hostname -I and press Enter. Your local IP address will appear on the next line. This is the quickest method and works on most Linux distributions.

If that does not work, try ip addr instead. Look for the section labeled with your connection name (often eth0 for Ethernet or wlan0 for WiFi). Find the line that starts with inet and the number after it is your local IP address.

Understanding what you are looking at

Your local IP address is the number your home or office router assigns to your computer. It always starts with 192.168, 10, or 172.16 and is only visible to devices on your own network. This is the address you use when setting up printers, accessing shared files, or connecting to other devices at home or work.

Your public IP address is different — it is what websites and internet services see when you connect. You can find it by opening any browser and searching "what is my IP address". Your internet service provider assigns this number, and it changes periodically. You rarely need it unless you are setting up remote access or troubleshooting with your ISP.

What to do if you cannot find your IP address

If the steps above do not show an IP address, your computer may not be connected to the network. Check that WiFi is turned on or your Ethernet cable is plugged in. Wait a few seconds and try again — sometimes it takes a moment for the connection to register.

If you are connected but still see no address, restart your computer and your router. Unplug the router for 30 seconds, plug it back in, and wait for the lights to stabilize. Then restart your computer and check again. If the problem persists, contact your internet service provider or network administrator.

Frequently Asked Questions

Why do I have two different IP addresses?

Your local IP address is assigned by your router and is only used within your home or office network. Your public IP address is assigned by your internet service provider and is what the outside internet sees. Most tasks require your local address, but websites and remote services use your public one.

Will my IP address change?

Your local IP address usually stays the same unless you restart your router or your computer is offline for a long time. Your public IP address changes periodically — sometimes weekly or monthly — depending on your internet service provider. If you need a stable address for remote access, ask your ISP about a static IP option.

Is it safe to share my IP address?

Your local IP address is safe to share with people on your network — it is how they connect to your printer or shared files. Your public IP address is visible to every website you visit, so it is not secret, but sharing it with strangers does not directly expose your personal data. However, avoid posting it publicly online.

Can I change my IP address?

Your local IP address is assigned automatically by your router and you cannot easily change it without technical knowledge. Your public IP address changes on its own over time. If you need a different public IP address immediately, restart your modem and wait a few minutes for your ISP to assign a new one.