Finding your IP address depends on your operating system, but the process takes less than a minute on any of them
Your IP address is a number assigned to your computer that identifies it on a network — think of it like a mailing address for data. You may need to find it to troubleshoot internet problems, set up a printer on your home network, or give it to technical support. The steps differ slightly between Windows, Mac, and Linux, but all three methods are straightforward and require no special tools.
The fastest way on any computer is to use the command line — a text-based interface where you type commands. If you prefer clicking through menus instead, both Windows and Mac offer graphical alternatives. Either method will show you two types of addresses: your local IP address (the one your home router assigned to your computer) and your public IP address (the one your internet provider assigned to your router, visible to websites you visit).
Key Takeaways
- On Windows, open Command Prompt and type ipconfig to see your local IP address listed next to "IPv4 Address".
- On Mac, open Terminal and type ifconfig to find your local IP address in the "inet" line under your active connection.
- On Linux, open Terminal and type hostname -I or ip addr to display your local IP address.
- To find your public IP address on any computer, visit a website like whatismyipaddress.com or type "what is my IP" into a search engine.
- Your local IP address stays the same most of the time, but your public IP address may change when your router restarts or your internet provider reassigns it.
Finding your IP address on Windows
The quickest method on Windows is to use Command Prompt. Click the Start menu, type cmd into the search box, and press Enter. A black window will open with a blinking cursor.
Type ipconfig and press Enter. You will see a list of information about your network connections. Look for the line that says "IPv4 Address" — the number next to it (something like 192.168.1.5) is your local IP address. If you have multiple network connections listed, find the one labeled "Ethernet" if you are plugged in with a cable, or "Wireless LAN adapter" if you are using Wi-Fi.
If you prefer not to use Command Prompt, you can find the same information through the Settings menu. Go to Settings > Network & Internet > Wi-Fi (or Ethernet if you are wired), click your current network, and scroll down to "IP address" under the "Properties" section.
Finding your IP address on Mac
On Mac, open Terminal by pressing Command + Space, typing terminal, and pressing Enter. A white window with a command prompt will appear.
Type ifconfig and press Enter. You will see several blocks of text, each representing a different network connection. Look for the section labeled "en0" (for Ethernet) or "en1" (for Wi-Fi). Within that section, find the line that starts with "inet" — the number after it (like 192.168.1.10) is your local IP address. Ignore lines that start with "inet6" — those are IPv6 addresses, a different format.
Alternatively, go to System Preferences > Network, select your active connection (Wi-Fi or Ethernet), and your local IP address will appear in the main window under "Status".
Finding your IP address on Linux
On Linux, open Terminal (the exact method depends on your distribution, but usually Ctrl + Alt + T works). At the command prompt, type hostname -I and press Enter. Your local IP address will appear on the next line.
If that command does not work, try ip addr instead. This will show more detail — look for the line that starts with "inet" under the connection you are using (usually labeled "eth0" for Ethernet or "wlan0" for Wi-Fi). The number after "inet" is your local IP address.
Understanding what you are looking at
When you run these commands, you may see multiple IP addresses or multiple network connections. Your computer can have more than one — for example, if you are connected to both Ethernet and Wi-Fi at the same time, or if you have a virtual network adapter installed. The one you need depends on how you are connected: use the Ethernet address if you are plugged in with a cable, or the Wi-Fi address if you are wireless.
The address itself is four numbers separated by dots, each between 0 and 255 (like 192.168.1.5). Most home networks use addresses starting with 192.168 or 10.0. If you see something very different, you may be on a guest network or a network set up differently than usual.
Finding your public IP address
Your local IP address is only visible to devices on your home network. Websites and services on the internet see a different address — your public IP address — which is assigned by your internet provider to your router.
To find your public IP address, visit any of these websites in your browser: whatismyipaddress.com, myip.com, or iplocation.net. Your public IP address will appear immediately on the page. You can also search "what is my IP" in Google or another search engine, and the answer will appear at the top of the results.
Your public IP address may change over time. Most internet providers reassign addresses periodically, and restarting your router often triggers a new one. Your local IP address, by contrast, usually stays the same unless you manually change it or your router is configured to reassign addresses frequently.
When you might need your IP address
You may need your local IP address to set up a printer, security camera, or other device on your home network — the setup instructions will ask you to enter your computer's IP address so the device knows where to send information. You might also need it if technical support is helping you troubleshoot a network problem.
Your public IP address is less commonly needed, but some services ask for it to whitelist your connection (allow only your home network to access something) or to troubleshoot connectivity issues with your internet provider. If your internet provider's support team asks for your IP address, they are almost always asking for the public one.
Frequently Asked Questions
Is it safe to share my IP address?
Your public IP address is visible to every website you visit, so sharing it with a trusted service or support team is generally safe. Your local IP address is only visible on your home network, so it is safe to share with anyone helping you set up a device at home. Neither address alone reveals personal information like your name or location (though your public IP can be used to estimate your general area).
Why do I see multiple IP addresses when I run ipconfig or ifconfig?
Your computer may have multiple network connections — Ethernet, Wi-Fi, virtual adapters, or VPN connections. Each one gets its own IP address. Use the address for the connection you are actually using: Ethernet if you are plugged in, Wi-Fi if you are wireless.
My IP address starts with 169.169 — is something wrong?
An address starting with 169.169 means your computer could not reach your router's DHCP server (the system that assigns IP addresses). Check that your router is on and that your computer is connected to it. Restarting both your computer and router usually fixes this.
Can I change my IP address?
You can change your local IP address through your router's settings, but most people should not — it can break network connections. Your public IP address is assigned by your internet provider and cannot be changed directly, though restarting your router may trigger a new one.
Do I need to write down my IP address?
You do not need to memorize it. You can look it up any time using the methods above. If you are setting up a device and need to remember it, write it down temporarily, but there is no need to keep it long-term.