Your IP address is in your network settings, and the fastest way to find it depends on your operating system
Your computer's IP address is a unique number that identifies it on your network and the internet. It looks like four numbers separated by dots — for example, 192.168.1.5 on a home network or something like 203.0.113.42 on the public internet. You may need this number to troubleshoot connection problems, set up a printer, access your computer remotely, or configure network devices.
The location of this information varies by whether you use Windows, Mac, or Linux, but in each case you can find it in under a minute using built-in tools. You do not need to install anything or restart your computer.
Key Takeaways
- Windows users can find their IP address by opening Command Prompt and typing ipconfig, then looking for the line labeled "IPv4 Address".
- Mac users can open System Settings, go to Network, select their connection, and read the IP address shown in the details pane.
- Linux users can open a terminal and type hostname -I or ip addr to see all IP addresses on the system.
- Your computer typically has two IP addresses: a private one for your home or office network and a public one for the internet, and which one you need depends on what you are trying to do.
- If you see an address starting with 169.254, your computer is not connected to the network properly and needs troubleshooting.
Finding your IP address in Windows
Open the Start menu and type cmd or command prompt. Click the Command Prompt app when it appears. A black window will open with a cursor blinking.
Type ipconfig and press Enter. A list of network information will appear. Look for the line that says "IPv4 Address" — the number next to it is your private IP address on your local network. If you are connected to the internet through a router, this is usually the address you need for printers, file sharing, or remote access within your home or office.
If you need your public IP address instead (the one the internet sees), you can type ipconfig /all to see more details, though your public address will not appear in Command Prompt. For that, you would need to visit a website like whatismyipaddress.com in your browser.
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 sidebar.
You will see a list of network connections on the left — typically Wi-Fi or Ethernet. Click the one you are currently using. On the right side, you will see connection details including your IP address, listed as "IPv4 Address". This is your private address on your local network.
If you need your public IP address, you can open a web browser and visit a site like whatismyipaddress.com, just as you would on Windows.
Finding your IP address in Linux
Open a terminal window. The method varies by desktop environment, but you can usually right-click the desktop and select "Open Terminal" or search for "Terminal" in your applications menu.
Type hostname -I and press Enter. This will display all IP addresses assigned to your computer. On most home systems, you will see one private address. If you want more detailed information about each network interface, type ip addr instead, which shows every network device and its address.
Your private address is the one you use for local network tasks. To find your public IP address, open a browser and visit whatismyipaddress.com.
Understanding private versus public IP addresses
Your computer usually has two IP addresses. Your private IP address is used only within your home or office network — it is assigned by your router and starts with 192.168, 10.0, or 172.16. This is the address you need when setting up a printer, accessing shared files, or connecting to a security camera on your network.
Your public IP address is what websites and internet services see when you connect to them. It is assigned by your internet service provider and changes periodically. You need this address only if you are setting up remote access from outside your network or troubleshooting issues with your internet connection itself.
If you see an address starting with 169.254, your computer is not properly connected to the network. This is a temporary address that appears when the normal connection process fails. Restart your computer or router, or check that your network cable is plugged in or your Wi-Fi password is correct.
Why you might need your IP address
Network printers often require your computer's private IP address to set up or troubleshoot. If your printer is not appearing in your list of available devices, you can manually add it using your computer's IP address and the printer's IP address.
Remote access software — programs that let you control your computer from another device — also needs your private IP address if you are connecting from within your home network, or your public IP address if you are connecting from outside. Security cameras, smart home devices, and file-sharing setups all work the same way.
If your internet connection is slow or unstable, your internet service provider may ask for your public IP address to investigate the problem on their end. Network troubleshooting often starts with confirming that your computer has an IP address at all — if you see 169.254 instead, you know the problem is with your connection, not with the device you are trying to reach.
What to do if your IP address keeps changing
On most home networks, your private IP address stays the same most of the time, but it can change if you restart your router or if your computer has not connected for a while. If you need a stable address — for example, to always reach a printer at the same number — you can set a static IP address in your router settings. This tells your router to always give your computer the same address.
Your public IP address changes more often, sometimes weekly or monthly depending on your internet service provider. If you need a permanent public address for remote access, you can pay your provider for a static public IP, though this is not common for home users. Most people use a dynamic DNS service instead, which keeps track of your changing public address and updates it automatically.
Frequently Asked Questions
Is my IP address the same as my MAC address?
No. Your IP address is a network address that identifies your computer on the internet or local network. Your MAC address is a hardware address that identifies your network card itself. They serve different purposes and look different — MAC addresses are six pairs of characters like 00:1A:2B:3C:4D:5E, while IP addresses are four numbers like 192.168.1.5.
Can someone find my location from my IP address?
Your public IP address can be used to find your approximate location — usually your city or region, not your exact address. Your private IP address cannot be traced outside your own network. If you want to hide your public IP address, you can use a VPN service, which routes your internet traffic through another server and shows that server's IP address instead of yours.
What if I see multiple IP addresses when I run ipconfig or ip addr?
You may have multiple network connections — for example, both Wi-Fi and Ethernet plugged in at the same time, or virtual network adapters created by software. Look for the connection you are actually using. The one labeled "Ethernet" or "Wi-Fi" with an active status is the one providing your internet connection.
Does my IP address change when I restart my computer?
Your private IP address usually stays the same after a restart, though it may change if you restart your router or if your computer has been off for a long time. Your public IP address may or may not change depending on your internet service provider — some change it weekly, others less often. If you need a permanent address, you can request a static IP from your provider.
Why does my IP address start with 169.254?
This address means your computer is not connected to your network properly. It is a temporary address that appears when your computer cannot reach your router or DHCP server. Check that your network cable is plugged in, your Wi-Fi password is correct, or restart your router. If the problem continues, contact your internet service provider.