Finding your IP address takes less than a minute on any computer
Your computer's IP address is a set of numbers assigned to your device on your home network — something like 192.168.1.5 or 10.0.0.12. You need this number when you're troubleshooting network problems, setting up port forwarding on your router, or connecting devices that require a specific machine. The steps differ slightly between Windows, Mac, and Linux, but each method takes you to the same information in under two minutes.
The fastest way depends on which operating system you use. Windows users can open Command Prompt and type one command. Mac users can check System Settings directly. Linux users have several options depending on their desktop environment. All three methods show you both your local IP address (the one inside your home network) and your public IP address (the one your internet provider assigns to your whole house).
Key Takeaways
- Your local IP address appears in Command Prompt on Windows when you type ipconfig, or in System Settings on Mac under Network.
- Your public IP address (assigned by your internet provider) is different from your local IP and shows what the outside internet sees.
- On Windows, the address labeled "IPv4 Address" is the one you need for most home network tasks.
- If you cannot find your IP address using these methods, restart your computer and try again — sometimes the network connection needs to refresh.
Finding your IP address on Windows
Open Command Prompt by pressing the Windows key, typing cmd, and pressing Enter. A black window will open with a blinking cursor. Type ipconfig and press Enter. The screen will fill with network information.
Look for the section labeled "Ethernet adapter" or "Wireless LAN adapter" — whichever one shows "Connected" next to it. Under that section, find the line that says "IPv4 Address". The number next to it (usually starting with 192.168 or 10.0) is your local IP address. Write it down or take a screenshot if you need it later. You can close Command Prompt by typing exit and pressing Enter.
If you see multiple adapters listed, only one will show "Connected". If none show "Connected", your computer is not currently on the network — check that your ethernet cable is plugged in or that you are connected to your Wi-Fi.
Finding your IP address on Mac
Click the Apple menu in the top-left corner and select "System Settings" (or "System Preferences" on older versions). Click "Network" in the left sidebar. You will see a list of connection types — click the one that shows "Connected" next to it, usually "Wi-Fi" or "Ethernet".
On the right side of the window, look for "IPv4 Address". The number displayed there is your local IP address. If you need more details, click "Advanced" at the bottom right, then click the "TCP/IP" tab to see additional network information.
Finding your IP address on Linux
The method depends on your desktop environment, but the command-line approach works on all Linux systems. Open a terminal (usually by right-clicking the desktop or pressing Ctrl+Alt+T). Type hostname -I and press Enter. Your local IP address will appear on the next line.
If you use a graphical desktop like GNOME or KDE, you can also click the network icon in the system tray (usually in the top-right corner), select "Network Settings" or "Connection Information", and find your IP address listed there. The exact menu names vary by distribution, but the information is always in the network settings.
Understanding local versus public IP addresses
The address you found above (192.168.x.x, 10.x.x.x, or 172.16.x.x) is your local IP address — it only works inside your home network. Your router assigns this number to your computer so other devices at home can find it. This is the address you use when setting up port forwarding, connecting a printer, or accessing your computer from another device on the same Wi-Fi.
Your public IP address is different. It is assigned by your internet provider and is what the outside internet sees when your computer connects to a website. To find your public IP, open a web browser and search "what is my IP address" — the first result will show it. Your public IP changes periodically (usually every few months) unless you pay your provider for a static IP. You rarely need your public IP for home network tasks, but it matters if you are setting up remote access or running a server.
What to do if your IP address keeps changing
Your local IP address can change if your router restarts or if your computer disconnects and reconnects to the network. If you need the same address every time (for example, to set up port forwarding), you can assign a static local IP address in your router settings. This tells your router to always give your computer the same number.
To do this, log into your router's admin panel (usually by typing 192.168.1.1 or 192.168.0.1 into a web browser), find the DHCP or IP reservation settings, and add your computer's MAC address with a fixed IP. The exact steps vary by router model, so check your router's manual or manufacturer website for instructions. Most routers have this option under "Advanced Settings" or "DHCP Reservation".
Checking your network connection if you cannot find an IP address
If Command Prompt, System Settings, or the terminal shows no IP address or says "Not Connected", your computer is not on the network. Check that your ethernet cable is firmly plugged into both your computer and router, or that you are connected to your Wi-Fi network and the password is correct.
Restart your computer and try again — sometimes the network adapter needs to reset. If you still see no IP address after restart, restart your router as well by unplugging it for 30 seconds, then plugging it back in. Wait two minutes for it to fully start up, then check your computer again. If the problem continues, your network adapter may need a driver update or repair, which usually requires contacting your device manufacturer or an IT professional.
Frequently Asked Questions
Why do I see multiple IP addresses when I run ipconfig?
Your computer may have multiple network adapters — for example, both ethernet and Wi-Fi. Only the one that is currently connected will have an active IP address. Look for the adapter that shows "Connected" or has an IPv4 address listed. If both are connected, you have two active addresses, but you only use the one for the network you are currently on.
Is my IP address the same as my MAC address?
No. Your MAC address is a permanent identifier built into your network card (something like 00:1A:2B:3C:4D:5E). Your IP address is a temporary number assigned by your router and can change. Both appear in ipconfig or network settings, but they serve different purposes.
Can someone use my IP address to hack my computer?
Your local IP address (192.168.x.x) only works inside your home network, so someone outside cannot use it to reach you. Your public IP address is visible to websites you visit, but it does not directly expose your computer — your router's firewall sits between the internet and your devices. Keeping your router's firmware updated and using a strong Wi-Fi password protects you far more than hiding your IP.
What if my IP address starts with 169.169?
An address starting with 169.169 means your computer could not reach your router's DHCP server (the part that hands out IP addresses). Check that your router is powered on and that your computer is connected to it. Restart both devices and wait a few minutes for them to reconnect.