What your IP address is and why you might need it
Your IP address is a set of numbers that identifies your device on the internet — like a mailing address for your computer or phone. It looks like four numbers separated by periods, such as 192.168.1.5 (your local network address) or something like 203.45.67.89 (your public address that the wider internet sees).
You might need to find your IP address to troubleshoot a connection problem, set up a printer on your home network, give tech support someone the information they need to help you, or configure network settings. The steps differ depending on whether you want your local address (the one inside your home network) or your public address (the one your internet provider assigns).
Key Takeaways
- Your local IP address is what your devices use to talk to each other at home; your public IP address is what websites see when you connect to the internet.
- On Windows, you can find your local IP address by opening Command Prompt and typing ipconfig, then looking for the line that says "IPv4 Address".
- On Mac or Linux, open Terminal and type ifconfig or ip addr to see your local IP address in the same way.
- To find your public IP address, visit a website like whatismyipaddress.com or search "what is my IP" in any search engine.
- Your router's settings page also shows your local IP address and is usually found by typing 192.168.1.1 or 192.168.0.1 into a web browser.
Finding your local IP address on Windows
Your local IP address is the one your device uses inside your home or office network. To find it on a Windows computer, click the Windows Start button and type cmd into the search box. Press Enter to open Command Prompt — a black window with white text.
Type ipconfig and press Enter. A list of information will appear. 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 using Wi-Fi). Find the line that says "IPv4 Address" — the number next to it is your local IP address. Write it down if you need it for later.
If you see multiple network sections, you are likely looking at more than one connection. Focus on the one that matches how you are actually connected to the internet right now.
Finding your local IP address on Mac
On a Mac, open Terminal by clicking the Spotlight search icon (magnifying glass in the top right), typing terminal, and pressing Enter. A black window will open.
Type ifconfig and press Enter. Scroll through the output until you find a section that starts with "en0" or "en1" (these are your network connections). Look for the line that begins with "inet" — the number after it is your local IP address. If you are using Wi-Fi, look for the section labeled "en0" first. If you are using a wired connection, look for "en5" or similar.
The Terminal window can look intimidating, but you only need to find the "inet" line and copy the number. Close Terminal when you are done.
Finding your local IP address on Linux
On Linux, open a terminal window (the method varies by distribution, but usually involves right-clicking the desktop or searching for "terminal"). Type ip addr and press Enter.
Look through the output for a section labeled with your connection name, usually "eth0" for wired or "wlan0" for Wi-Fi. Find the line that starts with "inet" — the number after it, up to the forward slash, is your local IP address. For example, if you see "inet 192.168.1.50/24", your local IP address is 192.168.1.50.
Finding your public IP address
Your public IP address is what the outside internet sees when you connect. The easiest way to find it is to open any web browser and search for what is my IP. Google and other search engines will display your public IP address right at the top of the results page.
Alternatively, visit a website like whatismyipaddress.com or ipchicken.com. These sites are designed specifically to show you your public IP address. Your public IP address changes periodically — your internet provider assigns a new one every few months or when you restart your modem, so do not be surprised if it is different next time you check.
Checking your IP address through your router settings
Your router — the device that broadcasts your Wi-Fi signal — also stores information about your local IP address. To access it, open a web browser and type 192.168.1.1 or 192.168.0.1 into the address bar. Press Enter.
A login page will appear. If you have never changed the password, try the default username and password printed on a sticker on the back or bottom of your router. Common defaults are "admin" and "admin", or "admin" and "password". Once you log in, look for a section called "Device Information", "Status", or "Network" — your local IP address and other network details will be listed there.
If you cannot log in, you can still use the Command Prompt or Terminal methods above. The router method is most useful if you need to see information about all the devices connected to your network at once.
What to do if you cannot find your IP address
If the Command Prompt or Terminal method does not work, make sure you typed the command correctly — ipconfig on Windows and ifconfig on Mac are the most common. If you see an error message, close the window and try again, typing slowly.
If you are trying to access your router settings and the default address does not work, your router may use a different address. Check the sticker on the back of the router — it usually lists the correct address to type. If the login fails, you may need to reset the router to factory settings, which erases your Wi-Fi password and network name. Only do this if you are certain you need to.
If you need your public IP address and the search method does not work, your internet connection may be down. Restart your modem by unplugging it for 30 seconds, plugging it back in, and waiting two minutes for it to reconnect.
Frequently Asked Questions
Is my IP address the same as my Wi-Fi password?
No. Your IP address is a number that identifies your device on a network. Your Wi-Fi password is what you type to connect to the network. They are completely separate. You can change your Wi-Fi password without changing your IP address, and vice versa.
Why does my IP address keep changing?
Your local IP address can change if you restart your device or router, or if your router reassigns addresses automatically. Your public IP address changes when your internet provider reassigns it, which happens periodically or when you restart your modem. This is normal and expected.
Can someone find me using my IP address?
Your public IP address can be used to find your general location (usually your city or region), but not your exact home address. Your internet provider knows which customer owns each public IP address, but they do not share that information publicly. Your local IP address only works inside your home network and is not visible to the outside internet.
What if I see multiple IP addresses when I run ipconfig or ifconfig?
Multiple addresses usually means you have more than one network connection active — for example, both Wi-Fi and Ethernet plugged in at the same time. Find the section that matches how you are actually connected right now. If you are on Wi-Fi, look for the "Wireless" section; if you are plugged in, look for the "Ethernet" section.
Do I need to remember my IP address?
You do not need to memorize it, but write it down if someone asks you for it for troubleshooting. You can always look it up again using the same steps. If you need it regularly for network setup, you can change your router settings to assign your device a static IP address that does not change.