How to Find Your Private IP Address — Step by Step 2026
Your private IP address is the internal number your router assigns to each device on your local network. It's used for communication between devices in your home or office — your phone talking to your printer, your laptop streaming to your smart TV, or your gaming console connecting to your router. Unlike your public IP (which the whole internet can see), your private IP stays within your local network. This guide shows you exactly how to find it on every platform.
Need your public IP instead? Check it instantly at miip.link. For your private IP, follow the steps below.
What Is a Private IP Address?
A private IP address is a non-routable address used within a local network. The Internet Assigned Numbers Authority (IANA) has reserved specific ranges for private use:
- Class A:
10.0.0.0to10.255.255.255— Used by large organizations - Class B:
172.16.0.0to172.31.255.255— Medium networks - Class C:
192.168.0.0to192.168.255.255— Most home networks
If your IP starts with 192.168., 10., or 172.16-31., it's a private IP. Your router assigns these via DHCP (Dynamic Host Configuration Protocol) and uses NAT to connect your devices to the internet through one public IP. For more on public IPs, see How to Find My Public IP Address.
Private IP vs Public IP
| Feature | Private IP | Public IP |
|---|---|---|
| Scope | Local network only | Global internet |
| Uniqueness | Only unique within your network | Globally unique |
| Assigned by | Your router (DHCP) | Your ISP |
| Example | 192.168.1.105 | 203.0.113.42 |
| Visible to | Your local devices | Every website you visit |
| Used for | File sharing, printing, local streaming | Internet access |
| Can change? | Yes, when DHCP lease expires | Yes, usually dynamic |
Your router creates a bridge between these two worlds. It has both a private IP (like 192.168.1.1) and a public IP assigned by your ISP. Learn more about whether IPs change in Does My IP Address Change?.
How to Find Your Private IP on Windows
Method 1: Using ipconfig (Command Prompt)
This is the fastest and most detailed method on Windows:
- Press
Win + R, typecmd, and press Enter - Type
ipconfigand press Enter - Look for "IPv4 Address" under your active connection
- You'll see something like
192.168.1.105
ipconfig Windows IP Configuration Ethernet adapter Ethernet: IPv4 Address. . . . . . . . : 192.168.1.105 Subnet Mask . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . : 192.168.1.1
The Default Gateway is your router's private IP — usually where you access its admin panel.
Method 2: Using PowerShell
Get-NetIPAddress -AddressFamily IPv4 | Where-Object {$_.InterfaceAlias -notlike "*Loopback*"} | Select-Object InterfaceAlias, IPAddress
This gives you a cleaner output showing just the interface name and IP address.
Method 3: Windows Settings
- Open Settings → Network & Internet
- Click Properties under your active connection
- Look for IPv4 address under "Properties"
Method 4: Network Connections
- Press
Win + R, typencpa.cpl, press Enter - Right-click your active connection → Details
- Find "IPv4 Address" in the list
How to Find Your Private IP on macOS
Method 1: Using ifconfig (Terminal)
Open Terminal and run:
ifconfig | grep "inet " | grep -v 127.0.0.1
This shows all your active private IPs. Look for the one starting with 192.168. or 10..
Method 2: Using ipconfig getifaddr
For a cleaner result specifying your interface:
ipconfig getifaddr en0
en0 is usually Wi-Fi. If you're on Ethernet, try en1.
Method 3: System Settings
- Open System Settings → Network
- Click your active connection (Wi-Fi or Ethernet)
- Click Details
- Look for IP address
This is the easiest method if you're not comfortable with Terminal.
How to Find Your Private IP on Linux
Method 1: Using ip command (modern)
ip addr show
Look for inet lines under your active interface. Your private IP appears as inet 192.168.1.105/24.
For a shorter output:
ip -4 addr show | grep -oP '(?<=inet\s)\d+(\.\d+){3}'
Method 2: Using hostname
hostname -I
This outputs only the IP addresses — clean and simple.
Method 3: Using ifconfig (legacy)
ifconfig | grep "inet " | grep -v 127.0.0.1
Note: ifconfig is deprecated on some distributions. Use ip if available.
Method 4: Using nmcli (NetworkManager)
nmcli -p device show
This shows detailed network information including IP addresses, DNS servers, and gateway.
How to Find Your Private IP on Android
Method 1: Settings (most common)
- Open Settings
- Go to Network & Internet (or Connections on Samsung)
- Tap Wi-Fi
- Tap the gear icon next to your connected network
- Look for IP address (usually under "Network details")
Your IP will look like 192.168.1.x or 10.0.x.x.
Method 2: Using Terminal Emulator
If you have Termux installed:
ifconfig wlan0
Or:
ip addr show wlan0
How to Find Your Private IP on iPhone (iOS)
Method 1: Settings
- Open Settings
- Tap Wi-Fi
- Tap the "i" icon next to your connected network
- Look for IP Address in the details
iOS shows your private IPv4 address (and IPv6 if available).
Method 2: Using Shortcuts app
- Open the Shortcuts app
- Create a new shortcut
- Add "Get Current IP Address" action
- Select "Local IP Address"
- Add "Show Result" action
- Run the shortcut
How to Find Your Private IP from a Router
Your router's admin page shows all connected devices and their private IPs:
- Open a browser and go to your router's IP (usually
192.168.1.1,192.168.0.1, or10.0.0.1) - Log in with admin credentials
- Look for Connected Devices, DHCP Client List, or Device Map
- You'll see a list of all devices with their private IPs, MAC addresses, and hostnames
Common router admin addresses by brand:
| Brand | Default IP | Default Login |
|---|---|---|
| TP-Link | 192.168.1.1 or 192.168.0.1 | admin / admin |
| Netgear | 192.168.1.1 or routerlogin.net | admin / password |
| ASUS | 192.168.1.1 or router.asus.com | admin / admin |
| Linksys | 192.168.1.1 | admin / admin |
| D-Link | 192.168.0.1 | admin / (blank) |
Static vs Dynamic Private IPs
By default, your router assigns private IPs dynamically via DHCP. This means your device might get a different IP each time it reconnects. For some applications, you need a static private IP:
- Port forwarding: Forwarding external traffic to a specific device
- Network sharing: Consistent access to shared folders
- Home servers: Running a media server, NAS, or game server
- Smart home: Consistent communication with IoT devices
- Printers: Reliable network printing
How to set a static private IP
- Find your current IP, subnet mask, gateway, and DNS (from
ipconfigorifconfig) - Choose an IP outside the DHCP range (usually
192.168.1.200-250) - On your device: Set the IP manually in network settings
- Or on your router: Reserve a specific IP for your device's MAC address
The router method (DHCP reservation) is recommended because your device doesn't need manual configuration.
Common Private IP Problems and Solutions
- IP conflict (two devices with the same IP): Restart both devices or assign static IPs. Symptoms include "IP address conflict" warnings or intermittent connectivity.
- Can't connect to the internet: Check that your IP is in the correct subnet (same first three octets as your gateway, e.g., 192.168.1.x with gateway 192.168.1.1).
- APIPA address (169.254.x.x): This means DHCP failed. Your device couldn't reach the router. Restart your router and device.
- Wrong subnet: If your IP starts with a different range than your gateway, you won't be able to communicate. Verify your subnet mask matches.
- 0.0.0.0 IP: The interface is down or not configured. Check your network adapter settings.
Why You Might Need Your Private IP
Knowing your private IP is essential for many everyday networking tasks:
- Port forwarding: To host game servers, remote desktop, or security cameras
- Local file sharing: Accessing shared folders between computers
- Network troubleshooting: Diagnosing connectivity issues
- Smart home setup: Connecting IoT devices that need a fixed address
- SSH access: Connecting to a Raspberry Pi, NAS, or home server
- Printer configuration: Adding a network printer by IP
- Developer tools: Testing local web servers, databases, or APIs
For tasks involving the internet at large, you'll need your public IP instead.
FAQ
What's the difference between 192.168.0.x and 192.168.1.x?
They're different subnets. Your router defines which one your network uses. 192.168.0.x and 192.168.1.x are both valid private ranges — the choice depends on your router manufacturer's default settings. They can't communicate directly without a router bridging them.
Can two devices have the same private IP?
No — within the same network, each device must have a unique private IP. If two devices somehow get the same IP, you'll experience an IP conflict with connectivity problems on both devices. Restart them or assign different static IPs.
Is my private IP visible on the internet?
No. Your private IP is only visible within your local network. Websites and online services see your public IP address, which is shared by all devices on your network.
Why does my private IP keep changing?
Your router uses DHCP to assign IPs with a lease time (often 24 hours). When the lease expires, your device may receive a different IP. To prevent this, set a static IP or configure a DHCP reservation on your router. Read more in Does My IP Address Change?.
What is 169.254.x.x?
This is an APIPA (Automatic Private IP Addressing) address. Windows assigns this when it can't reach a DHCP server (your router). It means your device couldn't get a proper IP. Restart your router and device to fix it.
How do I access my router using my private IP?
Open a browser and type your gateway IP (usually 192.168.1.1 or 192.168.0.1). This is your router's private IP, not your device's. You can find it by running ipconfig (Windows) or netstat -nr | grep default (Mac) and looking for "Default Gateway."
Can someone hack me using my private IP?
Your private IP alone is not accessible from the internet. However, if an attacker is on your same local network (e.g., public WiFi), they could potentially target your private IP. Use a VPN on public networks and keep your firewall enabled.
Check your public IP at miip.link and compare it with your private IP to understand the difference.