How to find your IP address on Windows 11 and Windows 10
Windows gives you three ways to read your IP address, and the one you need depends on whether you want the address your router gave the PC or the address the internet sees. Both take under a minute.
In this guide
On Windows 11, open Settings, Network & internet, Wi-Fi (or Ethernet), click your network and read the IPv4 address line; or open Terminal, type ipconfig and read IPv4 Address under your adapter. That is your local address, usually 192.168.x.x. Your public IP address, the one websites see, is not shown anywhere in Windows; an IP-check page shows it instantly.
Quick answer: which IP address do you need?
A Windows PC has two addresses that matter, and most confusion comes from looking for one in the place that shows the other.
| Local (private) IP | Public IP | |
|---|---|---|
| Looks like | 192.168.1.20, 10.0.0.15, 172.16.4.9 | Anything else, e.g. 203.0.113.42 or 2001:db8::1 |
| Assigned by | Your router (DHCP) | Your internet provider |
| Where to find it | Settings, ipconfig, PowerShell | Not in Windows: see the homepage |
| Used for | Printers, file sharing, port forwarding, game hosting on the LAN | Remote access, hosting, whitelisting, anything on the internet |
If someone on another network needs to reach your PC, they need the public address. If you are typing an address into a printer, a router's port-forwarding page or another device in the same house, they need the local one. The public vs private IP guide covers the difference in depth.
Find your public IP address
Windows never displays your public address, because the PC does not have it; the router does, on its internet-facing side. Open the homepage in any browser and it shows the public IPv4 and IPv6 address, the provider and the approximate location the rest of the internet sees for your connection. For a script or a terminal, Invoke-RestMethod https://checkmyip.com/ip in PowerShell (or curl https://checkmyip.com/ip) returns the bare address. If the address shown changes every few days, your provider assigns it dynamically; the static vs dynamic IP guide explains what that means for hosting.
Test it now
Cloudflare edgeRead at the Cloudflare edge from this request. The homepage adds your provider, network type and the VPN, DNS and WebRTC checks.
Show detailsMethod 1: the Settings app
Windows 11
- Open Settings (press Win + I).
- Select Network & internet.
- Select Wi-Fi and click the name of the network you are connected to, shown as properties; for a cable, select Ethernet instead.
- Scroll down. IPv4 address is your local address; IPv6 addresses and IPv4 DNS servers are listed beside it, with Physical address (MAC) at the bottom.
To see every adapter at once, including the default gateway (your router's address), open Network & internet, Advanced network settings, Hardware and connection properties. That page has a Copy button, handy for support tickets.
Windows 10
- Open Settings, then Network & Internet.
- Select Wi-Fi (or Ethernet), then click Hardware properties. Alternatively, on the Status page click Properties under your network's name.
- Read IPv4 address.
On either version, the IP address appears with (DHCP) or (Static) after it, telling you whether the router handed it out or someone typed it in.
Method 2: Command Prompt or Terminal with ipconfig
- Right-click Start and choose Terminal (Windows 11) or Command Prompt (Windows 10). PowerShell works too; the command is the same.
- Type
ipconfigand press Enter.
The output lists every network adapter. Ignore the ones with Media disconnected and the virtual adapters that VPNs and virtual machines add; the one you want is Wireless LAN adapter Wi-Fi or Ethernet adapter Ethernet:
Wireless LAN adapter Wi-Fi:
Connection-specific DNS Suffix . : home
IPv6 Address. . . . . . . . . . . : 2001:db8:85a3::8a2e:370:7334
Temporary IPv6 Address. . . . . . : 2001:db8:85a3::1c4f:9b2d:7e11:a03c
Link-local IPv6 Address . . . . . : fe80::1d2b:4c3a:9f10:7e55%12
IPv4 Address. . . . . . . . . . . : 192.168.1.20
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1- IPv4 Address is your local address.
- IPv6 Address, if present, is a public IPv6 address assigned to the PC itself; the Temporary one is what Windows actually uses for outgoing connections and rotates for privacy. The Link-local one starting
fe80::works only on your own network, and the%12suffix is the adapter number. - Subnet Mask defines the size of your network; Default Gateway is your router. The default gateway guide explains both.
Run ipconfig /all for the full picture: the adapter's Physical Address (MAC), whether DHCP Enabled is Yes, the DHCP Server and DNS Servers in use, and the Lease Obtained and Lease Expires times that show when your address may change. An IPv4 address starting with 169.254 means the PC never got an address from the router; the 169.254 guide has the fix. If names stop resolving after a network change, ipconfig /flushdns clears the resolver cache, as described in the flush DNS guide.
Method 3: PowerShell
PowerShell returns the same information as objects you can filter, which is useful when a PC has many adapters:
Get-NetIPAddress -AddressFamily IPv4 | Format-Table InterfaceAlias, IPAddress, PrefixLengthThis prints one row per adapter with the address and the prefix length (24 is the same as the mask 255.255.255.0). The loopback row 127.0.0.1 is always present and is not a real network address. For the full configuration of the active connection, including the gateway and DNS servers in one block:
Get-NetIPConfigurationAnd to pull just the address of the adapter that carries your internet traffic:
(Get-NetIPConfiguration | Where-Object { $_.IPv4DefaultGateway }).IPv4Address.IPAddressThese cmdlets exist on Windows 8 and later; on Windows 11 they are the native tools behind the Settings pages.
Find the IP addresses of other devices on your network
To reach a printer, a NAS or a console, you need its address rather than yours. Three ways, from easiest to most thorough:
- The router's device list. Log in to the router (the router IP guide shows how) and open the page named Connected devices, Client list or DHCP clients. It shows every device with its name, address and MAC address.
- The ARP table. In Terminal, run
arp -a. Windows lists every address on the local network it has recently exchanged packets with, alongside its MAC address; the vendor part of the MAC often identifies the device type, and the MAC address lookup decodes it. In PowerShell,Get-NetNeighbor -AddressFamily IPv4gives the same table. - Ask by name.
ping printer-nameornslookup printer-nameresolves a device's name to its address if the router registers names, andping -a 192.168.1.40does the reverse. The hostname to IP tool does the same for addresses on the internet.
Scanning a network you do not own is not something to do casually, and on a work network it is often against policy. On your own network, the router's list is the complete answer.
Questions
How do I find my IP address in Windows 11?
Open Settings, choose Network and internet, select Wi-Fi or Ethernet, click your connected network and read the IPv4 address line. Or open Terminal from the Start button's right-click menu, type ipconfig and read IPv4 Address under your Wi-Fi or Ethernet adapter. Both show the local address your router assigned; the public address the internet sees is shown on the homepage.
How do I find the IP address of a PC from the command line?
Open Command Prompt, Terminal or PowerShell and run ipconfig. Under the adapter you are using, IPv4 Address is the PC's local address, Default Gateway is the router, and ipconfig /all adds the MAC address, DHCP server and lease times. In PowerShell, Get-NetIPAddress -AddressFamily IPv4 lists every adapter's address in a table you can filter.
How do I find my 192.168 IP address?
A 192.168 address is your local address, assigned by the router. Run ipconfig and read IPv4 Address, or open Settings, Network and internet, Wi-Fi, your network, and read IPv4 address there. If it starts with 169.254 instead, the PC did not receive an address from the router; reconnect or restart the router. It will never appear on a website, since sites only see your public address.
What is the difference between my local and public IP address on Windows?
The local address, typically 192.168.x.x or 10.x.x.x, is assigned by your router and identifies the PC only inside your home network; it is the one Windows shows. The public address is assigned by your provider to the router's internet side, is shared by every device in the house, and is what websites and remote services see. Only an IP-check page can show the public one.
How can I find my IP address without the command line?
Use the Settings app: Network and internet, then Wi-Fi or Ethernet, then your network's properties, where IPv4 address is listed. For every adapter on one screen, open Advanced network settings and then Hardware and connection properties. For the public address, simply open the homepage in a browser; it reads the address from the connection itself, with no commands involved.