How to Find the IP Address on Your Computer in Windows 11 and 10

Updated

Short answer

On Windows, open Command Prompt, type ipconfig and press Enter: the IPv4 Address line under your Wi-Fi or Ethernet adapter is your computer’s local IP, and Default Gateway is your router. In Windows 11, you can also select Settings > Network & internet > Properties and read IPv4 address. Your public IP, the one websites see, belongs to your router and is shared by every device on your network; the box on this page shows it.

On this page

Your computer has a local (private) IP address that your router assigns, such as 192.168.1.23, and it shares a public IP address with every other device on your network. Windows shows the local IP in Settings, Command Prompt, PowerShell, Task Manager and Control Panel; the box below shows your public IP. The steps match Windows 11 version 26H2 (also 25H2 and 24H2) and Windows 10 version 22H2. On a Mac, see how to find your IP address on a Mac; for other devices, see finding the IP address on any device.

Your public IP address

216.73.216.128

Location
Columbus, Ohio, United States
Provider
Anthropic, PBC (AS16509)
Time zone
America/New_York (UTC−4)
Coordinates
39.96, -83.00

This is the address websites see, and the location is an estimate that can be off by a city or more. Your device's local IP (often 192.168.x.x) is a different one and only works inside your network.

The location in the box is an estimate; Where am I explains why it can be off.

Local vs. public IP address: which one Windows shows

The Windows tools on this page show your computer’s local IP, which your router assigns and which works only inside your network. Your public IPv4 address belongs to the router. Your internet provider assigns it, and websites see it for every device in your home, so ipconfig doesn’t list it.

Local IPv4 addresses come from three private ranges: 10.0.0.0 to 10.255.255.255, 172.16.0.0 to 172.31.255.255, and 192.168.0.0 to 192.168.255.255; what a local IP address is explains them. IPv6 differs: if your network uses it, Windows also lists public IPv6 addresses.

Ways to find your IP address on Windows at a glance

MethodHow to open itWhat it shows
SettingsWindows key + I > Network & internetIPv4 and IPv6 address of the connected network
Command PromptStart, type cmdIPv4, IPv6, subnet mask and gateway of every adapter
PowerShellRight-click Start > TerminalAddresses, gateway and DNS servers per adapter
Task ManagerCtrl + Shift + Esc > PerformanceIPv4 and IPv6 address of Wi-Fi or Ethernet
Control PanelWindows key + R, ncpa.cplIPv4 address, gateway, DHCP server, lease times
Public IPThe box above, nslookup or your routerThe address websites see

How to find your IP address in Windows 11 Settings

  1. Press Windows key + I to open Settings.
  2. Select Network & internet.
  3. At the top of the page, select Properties next to the network you’re connected to.
  4. Scroll to IPv4 address. That’s your computer’s local IP.

Microsoft gives the same steps in Find your IP address in Windows. Wi-Fi > (network name) properties, Wi-Fi > Hardware properties and the Ethernet page show the same address. Advanced network settings > Hardware and connection properties lists all adapters, with the default gateway and DNS servers.

How to find your IP address in Windows 10 Settings

  1. Press Windows key + I to open Settings.
  2. Select Network & Internet.
  3. Select Wi-Fi or Ethernet in the left pane.
  4. Select the network you’re connected to.
  5. Under Properties, find IPv4 address.

On the Status page, Properties under your network opens the same list, and View hardware and connection properties at the bottom shows all adapters.

How to find your IP address with Command Prompt (ipconfig)

  1. Select Start, type cmd, and select Command Prompt.
  2. Type ipconfig and press Enter.
  3. Find the block for your connection: Wireless LAN adapter Wi-Fi or Ethernet adapter Ethernet.
  4. Read the IPv4 Address line. That’s your computer’s local IP.

A Wi-Fi block looks like this:

Text
Wireless LAN adapter Wi-Fi:

   Connection-specific DNS Suffix  . : home
   IPv6 Address. . . . . . . . . . . : 2001:db8:4a2c:1e00:6c3d:91f2:ab47:5e10
   Temporary IPv6 Address. . . . . . : 2001:db8:4a2c:1e00:8d4f:2b1a:73c9:e20d
   Link-local IPv6 Address . . . . . : fe80::5c1a:9b3e:2f4d:81a7%12
   IPv4 Address. . . . . . . . . . . : 192.168.1.23
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : fe80::1%12
                                       192.168.1.1

How to read it:

  • IPv4 Address: your computer’s local IP.
  • Subnet Mask: the size of your network. With 255.255.255.0, it spans 192.168.1.1 to 192.168.1.254.
  • Default Gateway: your router’s local IP; see how to find your router’s IP address.
  • IPv6 Address: your computer’s public IPv6 address, if your network has IPv6. One that starts with fd is local-only.
  • Temporary IPv6 Address: a public IPv6 address that changes regularly for privacy. Windows usually uses it for outgoing connections, so websites see this one.
  • Link-local IPv6 Address: starts with fe80 and works only on your local network.

Skip adapters that show Media disconnected.

What ipconfig /all shows

ipconfig /all adds Host Name (your computer’s name), Physical Address (the MAC address), DHCP Enabled, Lease Obtained and Lease Expires, the DHCP Server that assigned the address (usually your router) and the DNS Servers.

Tip

Type ipconfig | findstr IPv4 to print only the IPv4 lines. The output doesn’t name the adapters, so it’s most useful when only one adapter is connected.

ipconfig commands: the switches you’ll use

CommandWhat it does
ipconfigIPv4 and IPv6 addresses, subnet mask and default gateway of each adapter
ipconfig /allFull configuration, including MAC address, DHCP server, lease times and DNS servers
ipconfig /releaseGives up the DHCP-assigned IPv4 address on all adapters, or on one: ipconfig /release "Wi-Fi"
ipconfig /renewRequests an IPv4 address from the DHCP server, usually your router
ipconfig /release6, ipconfig /renew6The same for DHCPv6 (IPv6)
ipconfig /flushdnsClears the DNS cache, which helps when a name still points to an old address
ipconfig /displaydnsLists the DNS cache, including hosts file entries
ipconfig /registerdnsRegisters the PC’s name and IP address with DNS again, mainly on company networks

Run /release, /renew, /flushdns and /registerdns as administrator: select Start, type cmd, then select Run as administrator. Microsoft’s Wi-Fi troubleshooting steps run the first three that way, and its ipconfig reference lists every switch.

How to find your IP address with PowerShell

Right-click Start and select Terminal (on Windows 10, Windows PowerShell). Then run:

PowerShell
Get-NetIPAddress -AddressFamily IPv4 | Format-Table InterfaceAlias, IPAddress, PrefixLength, PrefixOrigin

Your local IP is in the Wi-Fi or Ethernet row. Dhcp under PrefixOrigin means your router assigned it, Manual means someone typed it in, and 127.0.0.1 is the loopback address every PC has.

For an overview that includes your router, run:

PowerShell
Get-NetIPConfiguration

It shows each connected adapter’s IPv4Address, IPv4DefaultGateway (your router) and DNSServer. It skips virtual and disconnected adapters unless you add -All. The short alias is gip. For filters, the public IP, static IP settings and remote computers, see PowerShell commands for IP addresses.

How to find your IP address in Task Manager

  1. Press Ctrl + Shift + Esc to open Task Manager. If it opens in the small view, select More details.
  2. Select Performance.
  3. Select Wi-Fi or Ethernet.
  4. Read IPv4 address and IPv6 address below the graph.

How to find your IP address in Control Panel (Network Connections)

  1. Press Windows key + R, type ncpa.cpl, and press Enter. The Network Connections window opens.
  2. Double-click Wi-Fi or Ethernet.
  3. Select Details.
  4. Read IPv4 Address.

The window also lists the IPv4 Default Gateway, IPv4 DHCP Server, lease times and Physical Address. The steps are the same in Windows 11 and 10.

How to find your public IP address on Windows

Behind a router, your public IPv4 address lives on the router, so Settings and ipconfig can’t show it. Use one of these:

  • The box at the top of this page shows it, with its approximate location and provider.
  • Your router’s admin page lists it as the Internet or WAN IP address.
  • Command Prompt: the command below asks the OpenDNS resolver for a special name, and the resolver answers with the address your request came from.
Command Prompt
nslookup myip.opendns.com 208.67.222.222

Your public IPv4 address is the Address line under Non-authoritative answer. The first Address line, 208.67.222.222, is the resolver itself (resolver1.opendns.com). Use that IPv4 address rather than the name: on a network with IPv6, the query can go out over IPv6, and OpenDNS then returns no IPv4 address. If the command times out, your network may block outside DNS servers; use the box instead. In scripts, call the IP lookup API with a free API key: /v1/info without an ip parameter returns your public IP with its location and provider.

A router WAN address between 100.64.0.0 and 100.127.255.255 means your provider shares one public IPv4 address among several customers (carrier-grade NAT).

Note

With a VPN on, websites see the VPN server’s address instead of your provider’s, and the box shows that address too. ipconfig still shows your local IP, plus an extra adapter for the VPN.

Several adapters: which IP address is yours?

ipconfig lists every network adapter, including virtual ones. Your IP is on the adapter you’re connected through, usually the one with a Default Gateway. You can ignore:

  • Media disconnected entries, such as an unused Ethernet port, Bluetooth Network Connection and Local Area Connection* adapters.
  • vEthernet adapters from Hyper-V or WSL (Windows Subsystem for Linux), often with a 172.x address, and similar adapters from virtual machine apps. They connect virtual machines to your PC, not your PC to the internet.
  • VPN adapters, often named after the VPN app. Their address works only inside the VPN.
  • With Mobile hotspot on, a Local Area Connection* adapter with 192.168.137.1: your PC’s address on the hotspot it shares.

On cable and Wi-Fi at once, your PC has two local IPs and prefers the faster connection, usually the cable. To see which address Windows uses for internet traffic, run:

PowerShell
Find-NetRoute -RemoteIPAddress 1.1.1.1 | Select-Object -First 1 InterfaceAlias, IPAddress

It looks up the route to a public address (here 1.1.1.1) and prints the adapter and local IP that Windows picks.

How to change your IP address on Windows 11 and 10

To get a new local IP, run ipconfig /release and then ipconfig /renew as administrator; many routers hand back the same address. To set one yourself, open the network’s properties page in Settings, select Edit next to IP assignment and choose Manual instead of Automatic (DHCP). A DHCP reservation in the router usually works better, because the router then never gives that address to another device; static vs. dynamic IP addresses compares both. Your public IP comes from your provider. A router restart sometimes brings a new one, and a fixed public IP is something you order.

Troubleshooting: no IP address or the wrong one

Your IP address starts with 169.254

ipconfig labels it Autoconfiguration IPv4 Address. Windows assigned it itself because no DHCP server answered, so the PC has no IPv4 internet access. Try these in order:

  1. Reconnect to Wi-Fi, or unplug and replug the network cable.
  2. Restart the router and wait until it’s fully back.
  3. In an administrator Command Prompt, run ipconfig /release, then ipconfig /renew.
  4. On Windows 11, run the Network and Internet troubleshooter in the Get Help app.
  5. As a last step, select Settings > Network & internet > Advanced network settings > Network reset (on Windows 10, Status > Network reset). It removes and reinstalls your network adapters, resets their settings and restarts the PC.

If every device on your network gets a 169.254 address, check that DHCP is turned on in the router. The 169.254 IP address guide covers drivers, cables and router settings in more detail.

Windows shows no IP address

  • Settings shows no IPv4 address: check that you’re connected and that you opened the network you’re on, not a saved one.
  • Every adapter shows Media disconnected: Wi-Fi or the adapter is off, Airplane mode is on, or the cable is loose.
  • "‘ipconfig’ is not recognized as an internal or external command": the system path is damaged. Run C:\Windows\System32\ipconfig.exe instead.

The IP address is on the wrong network

If the address doesn’t match your router’s range, for example 10.0.0.15 when your router is 192.168.1.1:

  • You’re on another network, such as a guest Wi-Fi or your phone’s hotspot. Check the network name in Settings.
  • You’re reading the wrong adapter, such as a virtual or VPN adapter. See the previous section.
  • A second router or mesh system runs its own network unless it’s set to access point or bridge mode.

Compare the Default Gateway with your router’s address. If they match, you’re on the right network.

Frequently asked questions

How do I find my 192.168 IP address?

Open Command Prompt, type ipconfig and press Enter, then read the IPv4 Address line under Wi-Fi or Ethernet. On most home networks it starts with 192.168, and it’s your computer’s local IP, assigned by your router. If yours starts with 10 or with 172.16 to 172.31, your router uses another private range. The Default Gateway, often 192.168.0.1 or 192.168.1.1, is the router itself.

Is my IP address the same as my Wi-Fi?

Not quite. Your Wi-Fi router has one public IP address that every device on the network shares online, and it gives each device, including your computer, its own local IP address, such as 192.168.1.23. When you join a different Wi-Fi network, your local IP and the public IP that websites see both change.

Where is the IP address stored on a computer?

Windows keeps the current IP address in the TCP/IP settings of each network adapter, not in a file you open. Settings, ipconfig and PowerShell read it from there. With DHCP, the address is leased from your router, which renews it automatically and keeps a list of the addresses it handed out. On a home network, your public IP isn’t stored on the computer at all; it belongs to the router.

What does ipconfig do?

ipconfig is a Windows command that shows the TCP/IP configuration of every network adapter: IPv4 and IPv6 addresses, subnet mask and default gateway. With switches it does more: /all adds the MAC address and DHCP and DNS details, /release and /renew request a new address from the router, and /flushdns clears the DNS cache. It runs in Command Prompt and PowerShell.

How do I change my IP address on Windows 11?

For a new local IP, run ipconfig /release and then ipconfig /renew in Command Prompt opened as administrator; the router may hand back the same address. To set an address yourself, go to Settings > Network & internet, open your Wi-Fi network’s properties or the Ethernet page, select Edit next to IP assignment and choose Manual. Your public IP comes from your internet provider, and only the provider can change it, sometimes after a router restart.

How can I find the IP address of my device?

On a Windows PC, run ipconfig or open Settings > Network & internet > Properties. On an iPhone, go to Settings > Wi-Fi and tap the (i) next to your network; on Android, open your Wi-Fi network’s details in Settings. For printers, TVs and other devices, check the device’s network screen or your router’s list of connected devices, as described in how to find the IP address on any device.