What an IP address is and why you might need it
Your computer's IP address is a unique number that identifies it on a network — like a mailing address for data. It looks like four numbers separated by dots, such as 192.168.1.5. You might need to find it to troubleshoot a connection problem, set up a printer on your home network, access your computer remotely, or give it to technical support.
There are two types: your local IP address (the one on your home or office network) and your public IP address (the one your internet provider assigns to your whole network). Most of the time, you need the local one. This guide covers how to find both.
Key Takeaways
- Your local IP address is found in network settings on Windows, System Preferences on Mac, or terminal on Linux — the exact path depends on your operating system and version.
- Windows users can open Command Prompt and type ipconfig to see the address labeled "IPv4 Address" in seconds.
- Mac users can go to System Preferences, click Network, select your connection, and read the address in the status area.
- Your public IP address (the one your internet provider sees) can be found by searching "what is my IP" in any web browser.
Finding your IP address on Windows
The fastest way on Windows is through Command Prompt. Press the Windows key and type cmd, then press Enter. A black window opens. Type ipconfig and press Enter. Look for the line that says "IPv4 Address" — the number next to it is your local IP address.
If you prefer not to use Command Prompt, you can also find it in Settings. Click the Windows Start button, type Settings, and open it. Go to Network & Internet, then Status. Scroll down and click "View your network properties." Your IPv4 address appears in the list under your connection name.
Both methods show the same address. Command Prompt is faster if you need it often. Settings is easier if you are not comfortable with text commands.
Finding your IP address on Mac
On Mac, open System Preferences (or System Settings on newer versions). Click Network. On the left side, select the connection you are using — usually "Wi-Fi" or "Ethernet." Your IP address appears on the right side in the status area, labeled as "IP Address."
If you want to see more details, click the "Advanced" button in the lower right. A window opens showing additional network information, including your IP address, subnet mask, and router address. This is useful if technical support asks for any of those details.
You can also use Terminal if you prefer the command-line method. Press Command + Space, type Terminal, and press Enter. Type ifconfig and press Enter. Look for "inet" followed by a number — that is your local IP address.
Finding your IP address on Linux
On Linux, open a terminal window. The method depends on your desktop environment, but usually you can right-click the desktop and select "Open Terminal" or press Ctrl + Alt + T. Type hostname -I and press Enter. Your local IP address appears on the screen.
If that command does not work, try ifconfig instead. Look for "inet" followed by a number — that is your IP address. If ifconfig is not installed, type ip addr show and press Enter. Find the line that starts with "inet" under your active connection.
Different Linux distributions may have slightly different tools, but these three commands work on most systems. If you are unsure which connection you are using, look for the one labeled "UP" or "RUNNING."
Finding your public IP address
Your public IP address is what websites and services on the internet see when you connect to them. It is different from your local IP address. To find it, open any web browser and search for what is my IP. The first result will show your public address.
You can also visit websites like whatismyipaddress.com or ipinfo.io directly. They all show the same information — your public IP address and sometimes your location based on that address. This is the address your internet provider assigned to your home or office network.
Your public IP address changes periodically, depending on your internet provider's settings. Your local IP address (the one on your home network) usually stays the same unless you restart your router or change network settings.
What to do if you cannot find your IP address
If the commands above do not show an address, check that you are connected to the network. Look for a Wi-Fi icon or Ethernet connection indicator on your screen. If you are not connected, connect first, then run the command again.
If you are connected but still see no address, restart your computer and try again. Sometimes a network connection fails to initialize properly on startup. If restarting does not help, restart your router — unplug it for 10 seconds, plug it back in, and wait for it to fully restart (usually one to two minutes).
If you still cannot find your address after these steps, your network adapter may not be working. Check your device manager (Windows), System Report (Mac), or lspci command (Linux) to see if your network hardware is recognized. If it is not, you may need to reinstall network drivers or contact your internet provider.
Common reasons you might need your IP address
Knowing your IP address helps when you are setting up devices on your home network. Printers, security cameras, and smart home devices often need to know your computer's address to communicate with it. Some routers also let you assign a fixed IP address to a device so it does not change.
If you are troubleshooting a network problem, technical support may ask for your IP address to understand where the issue is happening. Knowing how to find it quickly saves time. You might also need it if you are setting up remote access to your computer or configuring network security settings.
Frequently Asked Questions
Is my IP address the same as my MAC address?
No. Your MAC address is a different identifier that works only on your local network. Your IP address works across the internet. Both are useful for different purposes, but they are not the same thing.
Will my IP address change if I restart my computer?
Your local IP address usually stays the same after a restart, unless your router is set to assign addresses randomly. Your public IP address may change depending on your internet provider's settings, but it typically stays the same for weeks or months.
Can I change my IP address?
You can change your local IP address through your router settings or your computer's network settings. Your public IP address is assigned by your internet provider and cannot be changed directly, though it may change on its own over time.
Is it safe to share my IP address?
Sharing your local IP address with someone on your home network is safe — they need it to connect devices. Sharing your public IP address is generally safe, though it does reveal your approximate location. Never share your full network details or passwords.
What if I have multiple IP addresses on my computer?
If you see multiple addresses, you likely have multiple network connections active — for example, both Wi-Fi and Ethernet. Use the address for the connection you are actually using. If you are unsure which one, check which connection is marked as "active" or "connected" in your network settings.