Your IP address is a number your computer uses to connect to the internet and local networks

Every device connected to a network has an IP address — a unique identifier that lets other computers find and communicate with yours. You may need to find it to troubleshoot connection problems, set up a printer on your home network, or give technical support someone the information they need to help you. The steps differ slightly depending on whether you use Windows, Mac, or Linux, but the process takes less than a minute on any system.

Your computer actually has two IP addresses: a local IP address (used only on your home or office network) and a public IP address (the one the wider internet sees). Most of the time you need the local one. This guide covers how to find both.

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, click Network, select your connection, and look for "IP Address" in the details pane.
  • On Linux, open a terminal and type hostname -I to display your local IP address immediately.
  • Your public IP address (the one the internet sees) can be found by searching "what is my IP" in any web browser.
  • Local IP addresses usually start with 192.168 or 10.0 and stay the same unless you restart your router or change network settings.

Finding your local IP address on Windows

The fastest way on Windows is through Command Prompt. Click the Start button, type cmd into the search box, and press Enter. A black window opens — this is Command Prompt.

Type ipconfig and press Enter. You will see a list of information. Look for the section labeled with your network connection name (usually "Ethernet" if you are plugged in with a cable, or "Wireless LAN adapter" if you are on Wi-Fi). Find the line that says IPv4 Address — the number next to it is your local IP address. It will look something like 192.168.1.105.

If you see multiple network adapters listed, find the one that shows an IPv4 Address with actual numbers (not all zeros). That is your active connection.

Finding your local IP address on Mac

On Mac, the process goes through System Settings. Click the Apple menu in the top-left corner and select System Settings (or System Preferences on older versions).

Click Network in the left sidebar. You will see a list of connection types on the left — select the one you are currently using (usually Wi-Fi or Ethernet). On the right side of the window, you will see details about that connection. Look for the line labeled IP Address — the number there is your local IP address.

If you do not see the details pane on the right, make sure your connection is selected and look for an "Advanced" or "Details" button to expand the information.

Finding your local IP address on Linux

On Linux, open a terminal window. The keyboard shortcut is usually Ctrl+Alt+T, though this varies by distribution. Once the terminal is open, type hostname -I and press Enter.

Your local IP address will appear immediately on the next line. It will be a single number like 192.168.1.50 or 10.0.0.25. If you see multiple numbers, the first one is usually your primary local IP address.

An alternative command that works on Linux, Mac, and some Windows systems is ifconfig (type it the same way as ipconfig on Windows). This shows more detailed network information, but the IP address is still the easiest thing to spot in the output.

Finding your public IP address

Your public IP address is what websites and internet services see when you connect to them. It is different from your local IP address and changes based on your internet service provider and router.

To find it, open any web browser and search for what is my IP. The first result will show your public IP address prominently at the top of the page. You can also visit websites like whatismyipaddress.com or ipinfo.io directly — they all display the same information.

Your public IP address is the one you would give to someone outside your home network who needs to connect to your computer remotely, or the one you would check if you are troubleshooting internet-wide connectivity problems.

Understanding the difference between local and public IP addresses

A local IP address only works on your home or office network. It is assigned by your router and lets devices on the same network find each other. These addresses usually start with 192.168 or 10.0. They stay the same until you restart your router or change network settings, which is why they are useful for setting up printers, security cameras, or other devices on your network.

A public IP address is assigned by your internet service provider and is visible to the entire internet. It is what websites use to send information back to you. It can change if you restart your modem or if your service provider reassigns it, which is why it is less reliable for long-term device setup.

For most home network tasks — like connecting a printer or accessing a computer from another device on the same Wi-Fi — you need the local IP address. For remote access from outside your home or troubleshooting with your internet provider, you need the public one.

What to do if you cannot find your IP address

If the commands above do not show an IP address, or if you see only zeros, your computer is not currently connected to a network. Check that your Wi-Fi is turned on or that your ethernet cable is plugged in securely. Wait a few seconds for the connection to establish, then try the steps again.

If you are on a corporate or school network, your local IP address may be assigned differently. Contact your network administrator if the standard steps do not work. Some networks use DHCP (automatic assignment) and others use static addresses (manually set), which can affect where the information appears.

If you are trying to find the IP address of a different device on your network (like a printer or another computer), you will need to run these same steps on that device itself, or check your router's connected devices list through its admin panel.

Frequently Asked Questions

Why do I need to know my IP address?

You need it to set up devices on your home network (like printers or smart home devices), to troubleshoot connection problems with technical support, to access your computer remotely from another location, or to check if your internet service provider has assigned you a new address. Most of the time you are looking for your local IP address for these tasks.

Will my IP address change if I restart my computer?

Your local IP address usually stays the same after a restart. It only changes if you restart your router, move to a different network, or if your router is set to reassign addresses frequently. Your public IP address is more likely to change, especially if you restart your modem, though some internet providers keep it stable for long periods.

Is it safe to share my IP address?

Sharing your local IP address is safe — it only works on your home network and is not sensitive information. Your public IP address is visible to every website you visit, so sharing it is also generally safe, though you should not share it with people you do not trust. Never share passwords or personal information along with an IP address.

What if I see multiple IP addresses when I run ipconfig or ifconfig?

Multiple addresses appear if your computer has more than one network connection (like both Wi-Fi and ethernet plugged in at the same time). Look for the one labeled as your active connection — usually the one with an IPv4 Address that starts with 192.168 or 10.0. The others are either inactive or virtual network adapters.

Can I change my IP address?

Your local IP address can be changed through your router settings or your computer's network settings, though this is rarely necessary. Your public IP address is assigned by your internet provider and cannot be changed directly, though restarting your modem sometimes triggers a new assignment. For most users, there is no reason to change either one.