Finding your IP address takes less than a minute on any computer
Your computer has an IP address right now — it's the number your device uses to send and receive data on your network. You might need it to troubleshoot a connection problem, set up a printer, access your router settings, or help a tech support person diagnose an issue. The steps differ slightly depending on whether you use Windows, Mac, or Linux, but all three methods are straightforward and require no special tools.
You'll find two types of IP addresses on your computer: a private IP address (the one your home or office network assigns to your device) and a public IP address (the one your internet service provider assigns to your whole network). Most of the time, you need the private one. This guide covers both.
Key Takeaways
- On Windows, open Command Prompt and type ipconfig to see your private IP address listed as "IPv4 Address".
- On Mac, go to System Settings, click Network, select your connection, and your IP address appears under "IP Address".
- On Linux, open a terminal and type hostname -I to display your private IP address.
- To find your public IP address (the one your internet provider sees), search "what is my IP" in any web browser.
- Your private IP address usually starts with 192.168, 10.0, or 172.16 and changes only when you restart your router or reconnect to the network.
Finding your private 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. You'll see a list of network information. Look for the section labeled with your connection type — usually "Ethernet adapter" if you're plugged in with a cable, or "Wireless LAN adapter" if you're on Wi-Fi. Under that section, find the line that says "IPv4 Address". The number next to it (something like 192.168.1.105) is your private IP address. You can close Command Prompt after you've written it down.
Finding your private 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'll see a list of connections on the left side. Click whichever one you're currently using — "Wi-Fi" if you're wireless, or "Ethernet" if you're plugged in with a cable. On the right side of the window, look for "IP Address". The number displayed there is your private IP address. You can close System Settings when you're done.
Finding your private IP address on Linux
Open a terminal window. The method varies by desktop environment, but usually you can right-click on the desktop and select "Open Terminal", or press Ctrl+Alt+T.
Type hostname -I and press Enter. Your private IP address will appear on the next line. If you see multiple addresses, the first one is usually the one you need. Close the terminal when you've recorded it.
Finding your public IP address from any computer
Your public IP address is what websites and services see when you connect to them. It's assigned by your internet service provider and is shared by every device on your home network. You don't need to open any settings to find it.
Open any web browser and search for "what is my IP" or "my IP address". Google, Bing, and most search engines will display your public IP address at the top of the results page. You can also visit websites like whatismyipaddress.com or ipinfo.io, which show your public IP along with other details like your approximate location and internet provider. This number changes only when your router restarts or your internet provider reassigns it, which can happen days or weeks apart.
Understanding the difference between private and public IP addresses
Your private IP address is used only within your home or office network. It lets your computer talk to your router, printer, and other devices on the same Wi-Fi or ethernet connection. Private addresses always start with 192.168, 10.0, or 172.16. If you need to set up a device on your home network or troubleshoot a connection problem, you almost always need this number.
Your public IP address is what the outside internet sees. When you visit a website, that website logs your public IP, not your private one. Your internet service provider controls this address, and it's shared by every device in your home — your phone, laptop, smart TV, and everything else all appear to the internet as coming from the same public IP. You rarely need to know your public IP unless you're setting up remote access to your computer or troubleshooting with your internet provider.
When you might need to know your IP address
Tech support may ask for your IP address to diagnose a connection problem. If your internet is slow or dropping, your support person might ask you to run the commands above and read back the numbers so they can see what your computer is reporting.
You'll also need your private IP address if you're setting up a printer, security camera, or other device on your home network. These devices often require you to type your computer's IP address into a web browser to access their settings. Similarly, if you want to access your router's settings to change your Wi-Fi password or check connected devices, you'll usually type your router's IP address (often 192.168.1.1 or 192.168.0.1) into a browser, and the router may ask for your computer's IP as part of the process. Knowing how to find it quickly saves time when you're troubleshooting.
Frequently Asked Questions
Will my IP address change if I restart my computer?
Your private IP address usually stays the same when you restart your computer, as long as you stay connected to the same network. However, if you restart your router or disconnect and reconnect to Wi-Fi, your private IP may change. Your public IP changes only when your internet provider reassigns it, which happens infrequently.
Is it safe to share my IP address?
Sharing your public IP address is generally safe — websites already see it every time you visit. Your private IP address is only visible to devices on your home network, so there's no risk in sharing it with tech support or a friend helping you troubleshoot. Never share your router's admin password, but the IP address itself is not sensitive information.
Why do I see multiple IP addresses when I run ipconfig?
You may have multiple network connections active at once — for example, both Wi-Fi and Ethernet, or a VPN connection alongside your regular internet. Each connection gets its own IP address. Use the one that matches the connection you're actually using right now.
Can I change my IP address?
Your private IP address is assigned by your router and can be changed through your router's settings, but most people never need to do this. Your public IP address is controlled by your internet provider — you can't change it directly, though restarting your modem may cause the provider to assign you a different one after a few minutes.