Finding your IP address depends on your operating system
Your computer's IP address is a set of numbers that identifies it on your network — something like 192.168.1.5 or 10.0.0.12. You find it differently depending on whether you use Windows, Mac, or Linux, but the process takes less than a minute on any of them. The address you see will be either a local address (used only inside your home network) or a public address (how the internet sees you), and most of the time you need the local one.
Knowing where to look matters because you might need this number to set up a printer, connect a smart home device, troubleshoot a network problem, or give it to someone helping you fix something. The steps below show you exactly where to find it on each system.
Key Takeaways
- Windows users can find their local IP address by opening Command Prompt and typing ipconfig, then looking for the line labeled "IPv4 Address".
- Mac users open System Settings, go to Network, select their active connection, and the IP address appears under "IP Address".
- Linux users open a terminal and type hostname -I or ip addr to see all addresses on the system.
- Your local IP address (starting with 192.168 or 10.0) is what you need for home network tasks; your public IP is different and visible to the internet.
- 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 app when it appears. A black window will open with a blinking cursor.
Type ipconfig and press Enter. The window will fill with network information. Look for the section labeled with your connection type — usually "Ethernet adapter" if you are plugged in with a cable, or "Wireless LAN adapter" if you are using WiFi. Under that section, 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 or 10.0.0.50.
You can also find this information through Settings if you prefer not to use Command Prompt. Go to Settings, select Network & Internet, then choose your connection type (WiFi or Ethernet). Click on the connection you are currently using, and the IP address will appear under "IP assignment".
Finding your IP address on Mac
Click the Apple menu in the top-left corner and select System Settings. In the sidebar on the left, click Network.
You will see a list of your network connections on the left side — usually WiFi or Ethernet, depending on how you are connected. Click the one you are currently using (it will have a green dot next to it). On the right side of the window, look for the section labeled IP Address. The number shown there is your local IP address.
If you do not see the IP address section, make sure you have clicked on an active connection — one with a green dot. Inactive connections will not show an IP address because they are not currently in use.
Finding your IP address on Linux
Open a terminal window. The method varies slightly by which Linux distribution you use, but usually you can right-click on the desktop and select "Open Terminal" or search for "Terminal" in your applications menu.
Type hostname -I and press Enter. This command shows all IP addresses assigned to your computer. For most home setups, you will see one local address — the one you need. It will start with 192.168 or 10.0.
If you want more detailed information about all your network interfaces, type ip addr instead. This shows every network connection on your system along with its IP address. Look for the connection you are using (usually labeled eth0 for wired or wlan0 for WiFi) and find the line starting with "inet" — that is your IPv4 address.
Understanding local versus public IP addresses
The address you find using the steps above is your local IP address — the one your router assigns to your computer and uses only within your home network. This is the number you need when setting up a printer, connecting a smart speaker, or troubleshooting a device that is not working on your WiFi.
Your public IP address is different. It is assigned by your internet service provider and is how websites and internet services see you. Your local address stays the same most of the time, but your public address can change if your router restarts or your service provider reassigns it. If you need your public IP address, open any web browser and search for "what is my IP" — the first result will show it.
For almost all home network tasks, you need the local address. Only use your public address if someone specifically asks for it or if you are setting up remote access to your computer from outside your home.
What to do if your IP address keeps changing
Your router assigns local IP addresses automatically using something called DHCP (Dynamic Host Configuration Protocol). This means your computer's address can change each time you restart it or reconnect to the network. If you are setting up a device that needs a permanent address — like a printer or security camera — this can be annoying because the address you write down today might be different tomorrow.
The solution is to give your device a static IP address, which means telling your router to always assign the same address to that computer or device. You do this in your router's settings, not on the computer itself. Log into your router (usually by typing 192.168.1.1 or 192.168.0.1 into a web browser), find the DHCP or IP reservation section, and tell it to reserve a specific address for your device's MAC address. Your router's manual or support page will have the exact steps, since every router is different.
Frequently Asked Questions
Why do I need to know my computer's IP address?
You need it to set up devices on your network (printers, cameras, smart home devices), troubleshoot connection problems, or give it to someone helping you with a technical issue. Some software also asks for it when you are connecting multiple computers together.
Is it safe to share my IP address with someone?
Your local IP address is safe to share — it only works inside your home network and is useless to someone outside it. Your public IP address is less sensitive than a password, but do not share it with strangers. Websites and services you use already know it.
What if I see multiple IP addresses when I run ipconfig or ip addr?
You may have multiple network connections (WiFi and Ethernet, for example) or virtual network adapters. Look for the one labeled as your active connection — on Windows it will be under your current adapter type, and on Linux it will be the one you are actually using to reach the internet.
Can I change my IP address myself?
Your local address is assigned by your router, so you cannot change it directly on your computer. You can request a new one by restarting your router, or you can set a static address in your router's settings if you want a permanent one. Your public IP address is controlled by your internet service provider.
What does the number after the slash mean in some IP addresses?
That number (like /24 in 192.168.1.0/24) is the subnet mask, which tells your computer which other addresses are on the same local network. You usually do not need to worry about it for basic home network tasks.