Finding your PC's IP address depends on your operating system
Your PC has two IP addresses you might need: a local IP address that identifies it on your home or office network, and a public IP address that identifies your entire network to the internet. The local address is what you'll use most often — to connect printers, cameras, or other devices on the same network. The public address is what websites see when you visit them.
On Windows, the fastest way to find your local IP is to open Command Prompt and type ipconfig. On Mac, open System Preferences and go to Network. On Linux, open a terminal and type hostname -I. Finding your public IP takes one more step on any system — you can visit a website like whatismyipaddress.com or type the command curl ifconfig.me in a terminal.
Key Takeaways
- Your local IP address appears in Command Prompt on Windows (type ipconfig) or in System Preferences on Mac under the Network section.
- The local IP usually starts with 192.168 or 10.0 and is what you use to connect devices on your home network.
- Your public IP address is what the internet sees and can be found by visiting a website like whatismyipaddress.com or using a terminal command.
- If you need to use your IP address for a printer, camera, or server, you almost always need the local IP, not the public one.
Finding your local IP on Windows
Open Command Prompt by pressing Windows key + R, typing cmd, and pressing Enter. Type ipconfig and press Enter. Look for the section labeled "Ethernet adapter" or "Wireless LAN adapter" depending on how you're connected. The line that says "IPv4 Address" is your local IP — it will look something like 192.168.1.105.
If you prefer not to use Command Prompt, you can also find it through Settings. Go to Settings > Network & Internet > Wi-Fi (or Ethernet), click your connection name, and scroll down to "IP address" under the IPv4 section. Both methods show the same address.
Finding your local IP on Mac
Click the Apple menu and select System Preferences (or System Settings on newer versions). Click Network. Select your connection type — Wi-Fi if you're wireless, Ethernet if you're wired — from the list on the left. Your local IP address appears on the right side of the window next to "IP Address." It will look something like 192.168.1.105 or 10.0.0.50.
You can also find it faster by clicking the Wi-Fi icon in the menu bar at the top of the screen, holding Option, and clicking your network name. A dropdown shows your local IP immediately.
Finding your local IP on Linux
Open a terminal and type hostname -I, then press Enter. Your local IP address appears on the next line. If you're connected to multiple networks, you'll see multiple addresses — the one you need is usually the first one, which starts with 192.168 or 10.0.
If that command doesn't work, try ip addr show instead. Look for the section labeled "inet" under your active connection — that's your local IP. Ignore anything labeled "inet6" unless you specifically need an IPv6 address.
Finding your public IP address
Your public IP is different from your local IP and is assigned by your internet service provider. To find it, open any web browser and visit whatismyipaddress.com, whatismyip.com, or simply search "what is my IP" in Google. The address appears at the top of the page.
If you prefer the command line, open a terminal (Command Prompt on Windows, Terminal on Mac or Linux) and type curl ifconfig.me, then press Enter. Your public IP appears on the next line. You can also type curl icanhazip.com or curl ident.me — all three commands do the same thing.
When you need your local IP versus your public IP
Use your local IP when you're setting up devices on your home or office network — printers, security cameras, network storage, or a home server. You'll also need it if you're troubleshooting network problems or connecting to another computer on the same Wi-Fi or Ethernet network. Your local IP rarely changes unless you restart your router or your device hasn't connected in a long time.
Use your public IP only if someone outside your network needs to reach a service you're running on your PC, or if a website or service asks for it specifically. Most people never need their public IP for everyday tasks. Your public IP can change if your internet connection drops or your router restarts, so don't write it down expecting it to stay the same.
Making your local IP stay the same
If you're setting up a printer or server and want your PC's local IP to remain constant, you can assign it a static IP address through your router. Log into your router's admin panel (usually by typing 192.168.1.1 or 192.168.0.1 into a browser, or through your router's app), find the DHCP or Local Network settings, and look for an option to reserve an IP address for your device. This tells the router to always give your PC the same local IP.
The exact steps vary by router model, so check your router's manual or the manufacturer's website for instructions. Most modern routers also let you set a static IP directly on your PC through Network Settings, though the router method is more reliable.
Frequently Asked Questions
Why do I have multiple IP addresses listed in ipconfig?
You see multiple addresses if your PC is connected to more than one network (Ethernet and Wi-Fi at the same time, for example), or if you have virtual network adapters installed. Look for the connection type you're actually using — Ethernet or Wireless LAN — and use the IPv4 address from that section.
Is my public IP address the same as my router's public IP?
Yes. Your router is what connects to the internet, so your PC and every device on your network share the same public IP address. The internet sees your entire home network as one address. Your local IP is unique to your PC within that network.
Can I change my IP address?
Your local IP can be changed by assigning a static address through your router or your PC's network settings. Your public IP can be changed by restarting your router or contacting your internet service provider, though it usually changes on its own periodically. Most people don't need to change either one.
What if ipconfig shows 169.254 as my IP address?
An address starting with 169.254 means your PC isn't connected to your router properly. Check that your Wi-Fi is enabled or your Ethernet cable is plugged in, restart your router, and try again. If the problem continues, restart your PC.