Your IP address is a number your computer uses to connect to the internet and local networks
Every device on a network has an IP address — a unique identifier that lets other computers find and talk to yours. You have two of them: a local IP address that works only on your home or office network, and a public IP address that the wider internet sees. You might need to find either one to troubleshoot a connection problem, set up a printer or security camera, or give tech support someone the information they need to help you.
The steps differ depending on whether you use Windows, Mac, or Linux, but all three methods take less than a minute. You do not need to install anything or restart your computer.
Key Takeaways
- Your local IP address appears in your network settings and usually starts with 192.168 or 10.0 on most home networks.
- Windows users can find both addresses by opening Command Prompt and typing ipconfig, then looking for "IPv4 Address" and "Default Gateway".
- Mac users open System Settings, go to Network, select their connection, and read the IP address shown in the details pane.
- Your public IP address (the one the internet sees) is different from your local one and can be found by searching "what is my IP" in any browser.
- 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 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. You will see a list of network adapters and their settings. Look for the section labeled with your connection type — usually "Ethernet adapter" if you are plugged in with a cable, or "Wireless LAN adapter" if you are on Wi-Fi.
In that section, find the line that says IPv4 Address. The number next to it (something like 192.168.1.105) is your local IP address. If you also see Default Gateway listed, that is your router's address. Write down whichever one you need and close the Command Prompt window.
If you see an address starting with 169.254 instead of 192.168 or 10.0, your computer is not properly connected to the network. Unplug your ethernet cable or disconnect from Wi-Fi, wait five seconds, and reconnect.
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). In the sidebar, click Network.
You will see a list of connections on the left — usually Wi-Fi and Ethernet. Click whichever one you are currently using (the one with a green dot next to it). On the right side of the window, you will see a button labeled Details or Advanced. Click it.
A new pane will open showing your network settings. Look for the line labeled IPv4 Address. The number there is your local IP address. Close the window when you have written it down.
If you do not see an IPv4 Address field, or if it shows "Not Connected", click the connection name again and look for a Renew DHCP Lease button. Click it and wait a few seconds for your address to appear.
Finding your IP address 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 will appear on the next line. This is the fastest method on Linux and works on most distributions.
If that command does not work, try ip addr show instead. You will see more detailed output. Look for a section labeled with your connection name (often "eth0" for ethernet or "wlan0" for Wi-Fi), and find the line starting with "inet" — the number after it is your local IP address.
Understanding the difference between local and public IP addresses
Your local IP address is what your router assigns to your computer and only works on your home or office network. Other devices on the same network can reach you using this address, but the internet at large cannot. This is the address you need when setting up a printer, security camera, or network drive on your home network.
Your public IP address is what websites and internet services see when you connect. It is assigned by your internet service provider and changes periodically (usually every few days or weeks). To find your public IP address, open any web browser and search for "what is my IP". The first result will show you the address the internet sees.
If you are behind a corporate firewall or VPN, your public IP address may be different from what your ISP assigned, because the VPN or firewall is masking your real address. This is normal and usually intentional for security.
What to do if you cannot find your IP address
If the commands above show no address, or show an address starting with 169.254, your computer is not connected to the network. First, check that your ethernet cable is plugged in firmly on both ends, or that you are within range of your Wi-Fi router and the network name appears in your available networks list.
If the cable is plugged in or you are connected to Wi-Fi, restart your router. Unplug it from power, wait 30 seconds, and plug it back in. Wait another minute for it to fully restart, then try the commands again.
If you still see no address after restarting the router, your network adapter may need a driver update or may have failed. On Windows, open Device Manager (press Windows key + X and select it), find "Network adapters", right-click your adapter, and select "Update driver". On Mac, restart your computer and try again. If the problem persists on either system, the hardware may need professional repair.
Why you might need your IP address
Tech support may ask for your IP address to diagnose connection problems or to send you files over the network. You need your local IP address to access a device on your home network — for example, to log into your router's settings page or to reach a network printer. Some online games or applications also ask for your IP address to set up port forwarding, which lets them communicate with your computer through your router.
Your public IP address is less commonly needed, but websites can use it to detect your approximate location or to block access from certain regions. If you are having trouble accessing a website, knowing your public IP can help you understand whether a geographic restriction is the cause.
Frequently Asked Questions
Is it dangerous to share my IP address?
Your public IP address is already visible to every website you visit, so sharing it with someone you trust is not a security risk by itself. Your local IP address is only useful to someone on your home network, so it is safe to share with tech support or a friend helping you set up a device. Never share either address with someone you do not trust.
Why does my IP address keep changing?
Your router assigns local IP addresses automatically using DHCP, and your computer may get a different one each time you restart or reconnect to the network. Your public IP address changes because your ISP reassigns it periodically. If you need a stable address for a device like a printer, you can set a static IP in your router settings, but this is not necessary for most home users.
What if I have multiple network connections?
If you are connected to both ethernet and Wi-Fi at the same time, you will have two local IP addresses — one for each connection. The commands above will show both. Use the address for whichever connection you are actually using. Most computers prioritize ethernet over Wi-Fi automatically.
Can I change my IP address?
You can change your local IP address by adjusting your router settings or by setting a static IP on your computer, but most people should not do this. Your public IP address is controlled by your ISP and will change on its own over time. If you need to hide your public IP for privacy, you can use a VPN service, but that is a separate tool from finding your address.
What does IPv6 mean, and do I need to worry about it?
IPv6 is a newer version of the IP address system that uses longer addresses. Most home networks still use IPv4 (the older system), which is what you see in these steps. If your network settings show both an IPv4 and IPv6 address, either one will work for most purposes. You do not need to choose between them — your computer uses both automatically.