Finding your IP address takes one to three minutes and requires no special software

Your computer has an IP address right now — a string of numbers that identifies it on your network. You may need it to troubleshoot a connection problem, set up a printer, access your computer remotely, or configure network settings. The steps differ slightly depending on whether you use Windows, Mac, or Linux, but all three methods are straightforward and free.

The address you see most often is your local IP address — the one your router assigns to your computer within your home or office network. This is different from your public IP address, which is what websites see when you browse. This guide covers finding your local IP address, which is what you need for most everyday tasks.

Key Takeaways

  • On Windows, open Command Prompt and type ipconfig to see your local IP address listed as "IPv4 Address".
  • On Mac, go to System Settings, select Network, choose your connection, and look for "IP Address" in the details.
  • On Linux, open a terminal and type hostname -I or ip addr to display your IP address.
  • Your local IP address usually starts with 192.168 or 10.0 and changes only if you restart your router or manually reconfigure your network.
  • If you need your public IP address instead, you can find it by searching "what is my IP" in any web browser.

Finding your IP address on Windows

Open the Start menu and type "Command Prompt" into the search box. Click the Command Prompt application when it appears. A black window will open with a blinking cursor.

Type ipconfig and press Enter. The window will display several lines of information. Look for the line that says "IPv4 Address" — the number next to it is your local IP address. It typically looks like 192.168.1.100 or 10.0.0.50. Write it down or take a screenshot if you need it later.

If you see multiple IPv4 addresses listed, you likely have more than one network connection. The one you need is usually under "Ethernet" if you are plugged into the router with a cable, or under "Wireless LAN adapter" if you are using Wi-Fi.

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 connections on the left side — typically "Wi-Fi" and "Ethernet". Click the one you are currently using. On the right side, you will see connection details. Look for the line labeled "IP Address" — the number there is your local IP address.

If you do not see the IP Address field, make sure you have selected an active connection. A green dot next to the connection name means it is currently connected. If you are using Wi-Fi, click "Wi-Fi" and look for the IP Address field in the details pane.

Finding your IP address on Linux

Open a terminal window. On most Linux distributions, you can right-click the desktop and select "Open Terminal", or press Ctrl+Alt+T.

Type hostname -I and press Enter. Your local IP address will appear on the next line. This is the simplest method and works on nearly all Linux systems.

If that command does not work, try ip addr instead. This will display more detailed network information. Look for the section labeled "inet" under your active connection — the number after "inet" is your IP address. Ignore any address that starts with 127.0, as that is your computer's internal loopback address.

Understanding what your IP address tells you

Your local IP address is assigned by your router and is unique only within your home or office network. It does not change unless you restart your router, your computer loses and regains its connection, or you manually reconfigure your network settings. Most home networks use addresses starting with 192.168 or 10.0.

The last number in your IP address (called the host portion) is usually different for each device on your network. Your phone, laptop, printer, and smart TV each get their own address. This is how your router knows which device to send data to.

If you need to access your computer from another device on the same network — to set up a printer, connect to shared files, or use remote access software — you will need this local IP address. It is not sensitive information; anyone on your network can see it, and it does not expose you to security risks.

Finding your public IP address instead

Your public IP address is different from your local one. It is assigned by your internet service provider and is what websites see when you visit them. If you need your public IP address, you do not need to open any settings or terminal windows.

Open any web browser and search for "what is my IP" or "my IP address". Google and other search engines will display your public IP address at the top of the results. You can also visit websites like whatismyipaddress.com or ipinfo.io, which show your public address and additional information like your approximate location and internet provider.

Your public IP address changes periodically — usually when your router restarts or after several days of continuous use. Unlike your local IP address, you do not need to remember it for most tasks. It is mainly useful for troubleshooting internet connection problems or understanding what information websites can see about you.

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 your Wi-Fi is turned on or that your ethernet cable is plugged in. On Windows, look for a network icon in the system tray (bottom-right corner). On Mac, check the Wi-Fi icon in the menu bar (top-right corner). On Linux, check your network settings in the system menu.

If you are connected but still do not see an IP address, restart your router by unplugging it for 30 seconds and plugging it back in. Wait a minute for your computer to reconnect, then try the steps again. If the problem persists, your router may not be assigning addresses correctly, and you may need to restart your computer or check your router's settings.

Frequently Asked Questions

Is my local IP address the same as my public IP address?

No. 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. They are completely different numbers.

Will my IP address change if I restart my computer?

Usually not. Your local IP address stays the same unless you restart your router or your computer loses its network connection for an extended period. Some routers are set to reassign addresses periodically, but most home networks keep the same address for weeks or months.

Can I change my IP address?

Yes, but you usually do not need to. You can restart your router to force a new public IP address, or you can log into your router's settings to manually assign a different local IP address to your computer. For most users, the default address works fine.

Why do I need my IP address?

You need your local IP address to set up network devices like printers, access your computer remotely, troubleshoot connection problems, or configure network settings. You need your public IP address mainly for troubleshooting internet issues or understanding what information websites can see about your location.

Is it safe to share my IP address?

Your local IP address is safe to share with anyone on your network — they can see it anyway. Your public IP address is also relatively safe to share; it shows your approximate location and internet provider but does not directly expose personal information. However, avoid sharing it with untrusted sources, as it could be used for targeted attacks.