Finding your IP address takes less than a minute on any operating system
Your computer's IP address is a number your router assigns to identify your device on the network. You may need it to troubleshoot connection problems, set up port forwarding, or connect to your computer remotely. The steps differ slightly between Windows, Mac, and Linux, but all three show you the address in plain text once you know where to look.
You have two main routes: use the command line (fastest, works the same way across systems) or navigate through settings menus (slower, but visual). Both take under two minutes and require no special permissions.
Key Takeaways
- On Windows, open Command Prompt and type ipconfig to see your IP address listed as "IPv4 Address".
- On Mac, open System Preferences, go to Network, select your connection, and the IP address appears in the window.
- On Linux, open a terminal and type hostname -I or ip addr to display your address when ready.
- The address you see is your local IP address (used inside your home network), not your public IP address (used on the internet).
- If you need your public IP address instead, search "what is my IP" in any browser to see what the internet sees.
Finding your 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. The window will display several lines of information. Look for the line that says "IPv4 Address" — the number next to it (usually something like 192.168.1.100) is your local IP address. You may see multiple IPv4 addresses if your computer has more than one network connection; the one under "Ethernet adapter" or "Wireless LAN adapter" is the one you need.
If you prefer not to use the command line, you can also find this in Settings. Open Settings, go to Network & Internet, select your connection type (Wi-Fi or Ethernet), and click on the connection name. Scroll down to "IP address" to see the same number.
Finding your IP address on Mac
Click the Apple menu in the top-left corner and select System Preferences (or System Settings on newer versions). Click Network in the left sidebar.
Select the connection you are using — either Wi-Fi or Ethernet — from the list on the left. The IP address appears in the main window next to "IPv4 Address". Write it down or take a screenshot if you need to keep it.
If you want to use the command line instead, open Terminal (find it in Applications > Utilities). Type ifconfig and press Enter. Look for the line that says "inet" under your active connection; the number next to it is your IP address.
Finding your IP address on Linux
Open a terminal window. The exact method depends on your desktop environment, but usually you can right-click on the desktop and select "Open Terminal" or search for "Terminal" in your applications menu.
Type hostname -I and press Enter. Your IP address will appear on the next line. This is the fastest method on any system. If that command does not work, try ip addr instead — it shows more detail, but your local IP address will be listed next to "inet" under your active connection (usually eth0 for Ethernet or wlan0 for Wi-Fi).
Local IP address versus public IP address
The address you just found is your local IP address — the number your router uses to identify your computer inside your home network. It always starts with 192.168, 10.0, or 172.16, and only devices on your network can see it.
Your public IP address is different. It is assigned by your internet service provider and is what websites see when you visit them. If you need your public IP address instead, open any web browser and search for "what is my IP" — the first result will show you the address the internet sees.
For most home network tasks — like setting up a printer, connecting to a security camera, or troubleshooting a slow connection — you need the local IP address. You only need the public address if you are setting up remote access or checking your internet identity.
Why you might need your IP address
The most common reason to look up your IP address is to troubleshoot a connection problem. If your internet is slow or drops frequently, your router's support page or your internet service provider may ask for your IP address to investigate the issue.
You also need it to connect to devices on your network by address — for example, typing your printer's IP address into a web browser to change its settings, or connecting to a security camera feed from another room. Some people also need it to set up port forwarding, which lets you access a device on your home network from outside the house.
If you are setting up a static IP address (one that does not change) for a device, you will need to know the current address first so you can configure it properly in your router settings.
What to do if the address keeps changing
By default, your router assigns a new local IP address to your computer each time it connects — this is called DHCP (Dynamic Host Configuration Protocol). Most of the time this does not matter, but if you are setting up a device that needs a fixed address, the constant changes can cause problems.
You can assign a static local IP address in your router settings. Log into your router (usually by typing 192.168.1.1 or 192.168.0.1 into a browser), find the DHCP or IP reservation section, and tell it to always give your computer the same address. The exact steps vary by router brand, so check your router's manual or manufacturer website for instructions.
Alternatively, you can set a static IP directly on your computer through its network settings, though this is more complicated and can cause conflicts if done incorrectly. For most people, setting the reservation in the router is simpler and safer.
Frequently Asked Questions
Is my local IP address the same as my public IP address?
No. Your local IP address (192.168.x.x) is only visible inside your home network. Your public IP address is assigned by your internet service provider and is what websites see when you visit them. You can find your public address by searching "what is my IP" in any browser.
Why does my IP address sometimes change?
Your router assigns addresses automatically using DHCP, which means a device may get a different address each time it connects. If you need a fixed address for a device, you can set up a static IP or DHCP reservation in your router settings to keep it the same.
Can I use someone else's IP address to access their computer?
Not directly. Knowing someone's local IP address does not let you access their computer without permission. You would also need the correct username, password, and remote access software configured on their device. Public IP addresses work the same way — they identify a connection, but do not grant access by themselves.
What if I cannot find my IP address using these steps?
Make sure you are connected to your network (Wi-Fi or Ethernet). If you are using the command line, check that you typed the command correctly and pressed Enter. On Windows, try typing ipconfig /all for more detailed information. If you still see nothing, your network connection may not be active — try reconnecting to Wi-Fi or plugging in an Ethernet cable.
Do I need my IP address to use the internet normally?
Your router handles IP addresses automatically, so you do not need to know yours for everyday browsing, email, or video streaming. You only need to look it up when troubleshooting, setting up a device, or configuring network settings.