Networking

ipconfig /all Command: Output Explained Line by Line

The ipconfig /all command prints the full TCP/IP configuration of every network adapter on a Windows PC: addresses, gateway, DNS servers, DHCP lease and the hardware (MAC) address. Run it in Command Prompt or PowerShell, then read the section for the adapter you actually use; the lines below explain what each field means.

ipconfig /all

No administrator rights are needed to run it. Microsoft's reference describes /all as displaying the full TCP/IP configuration for all adapters, whether they are physical interfaces such as installed network adapters or logical ones such as dial-up connections. Plain ipconfig without the switch shows only the IPv4 and IPv6 addresses, subnet mask and default gateway.

Example ipconfig /all output

This is example output for a laptop on home Wi-Fi. The names and addresses are made up, and your exact lines can differ by Windows version and network setup.

Windows IP Configuration

   Host Name . . . . . . . . . . . . : alex-laptop
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No

Wireless LAN adapter Wi-Fi:

   Connection-specific DNS Suffix  . : home
   Description . . . . . . . . . . . : Intel(R) Wi-Fi 6 AX203
   Physical Address. . . . . . . . . : AA-BB-CC-11-22-33
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   IPv4 Address. . . . . . . . . . . : 192.168.1.42(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Thursday, November 12, 2026 8:15:03 AM
   Lease Expires . . . . . . . . . . : Friday, November 13, 2026 8:15:03 AM
   Default Gateway . . . . . . . . . : 192.168.1.1
   DHCP Server . . . . . . . . . . . : 192.168.1.1
   DNS Servers . . . . . . . . . . . : 192.168.1.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

The top block: settings for the whole computer

The first block, under Windows IP Configuration, applies to the machine rather than to one adapter.

  • Host Name: the computer's name on the network.
  • Primary Dns Suffix: the DNS domain the PC belongs to. It is usually empty at home and filled in on a PC joined to a company domain.
  • Node Type: how the PC resolves NetBIOS names (an older Windows naming system). Hybrid is common. This rarely matters for everyday troubleshooting.
  • IP Routing Enabled: whether Windows forwards packets between adapters. No is normal for a desktop or laptop.
  • WINS Proxy Enabled: another legacy NetBIOS setting, normally No.

The adapter block: line by line

Each adapter gets its own section, headed by its type and name, such as Ethernet adapter Ethernet or Wireless LAN adapter Wi-Fi. The name in that heading is the one you pass to other ipconfig switches. The fields that matter most:

LineWhat it tells you
Connection-specific DNS SuffixThe DNS domain handed out for this connection, appended to short names. Often your router's domain, or blank.
DescriptionThe adapter's hardware or driver name. Useful for telling a real Wi-Fi card from a virtual adapter.
Physical AddressThe MAC address, six pairs of hex digits. Router access lists and DHCP reservations use it.
DHCP EnabledYes means the address came from a DHCP server (on a home network, the router). No means it was typed in by hand, a static address.
Autoconfiguration EnabledWhether Windows may give itself a fallback address when DHCP does not answer (see the 169.254 section).
IPv4 AddressYour address on this network. The (Preferred) tag means it is valid and in use.
Subnet MaskDefines which addresses are on your local network. 255.255.255.0 means the first three numbers must match, so 192.168.1.1 to 192.168.1.254 are neighbours.
Lease Obtained, Lease ExpiresWhen the DHCP lease started and when it ends. Only shown when DHCP is enabled.
Default GatewayThe router your PC sends all non-local traffic to. If it is blank, the PC can reach the local network at most, not the internet.
DHCP ServerThe device that issued the lease. Usually the same address as the gateway at home.
DNS ServersThe servers asked to turn names into addresses. Several can be listed, and the first is tried first.

You may also see lines for IPv6: IPv6 Address, Link-local IPv6 Address (starting with fe80::), DHCPv6 IAID and DHCPv6 Client DUID. The last two are identifiers the PC presents to a DHCPv6 server. You can ignore them unless you are configuring that server.

What to check for common problems

The point of running ipconfig /all is usually to answer one specific question. These are the checks, in the order they pay off.

  1. Is the address sensible? A home address normally falls in a private range such as 192.168.x.x, 10.x.x.x or 172.16.x.x to 172.31.x.x. If it starts with 169.254, DHCP failed.
  2. Is there a default gateway? Without one, traffic to the internet has nowhere to go.
  3. Does the gateway share your subnet? With a mask of 255.255.255.0, an address of 192.168.1.42 and a gateway of 192.168.0.1 do not match, which usually means a wrong static setting.
  4. Are the DNS servers right? If websites fail by name but a numeric address still works, look at the DNS Servers line. If the listed server is not the one you expect, see how to change your DNS server on Windows or fix a DNS server that is not responding.
  5. Is DHCP on when it should be? A static address left over from another network is a classic cause of "connected, no internet" after moving.

What a 169.254.x.x address means

When an adapter is set to obtain an address automatically and no DHCP server answers, Windows can assign itself a link-local address. Microsoft's reference calls this Automatic Private IP Addressing (APIPA), and the ipconfig remarks say the command helps you see which values came from DHCP, APIPA or an alternate configuration. RFC 3927 registers the 169.254/16 prefix for this purpose and says hosts pick from 169.254.1.0 to 169.254.254.255. Such an address works only on the local link, so it never gives internet access. In ipconfig /all it appears as an IPv4 address in that range, often with Autoconfiguration Enabled set to Yes. For the usual fixes, see what DHCP is and check that the router is on and reachable.

Media disconnected adapters

An adapter with no link prints Media State . . . . . . . . . . . : Media disconnected and shows little else. That is normal for an unplugged Ethernet port, a Bluetooth network adapter or a virtual adapter whose software is idle. It is not an error. Only worry when the adapter you expected to use is the one reporting it, which points at the cable, the Wi-Fi connection or the driver.

Other ipconfig switches worth knowing

These are documented in the same Microsoft reference:

  • ipconfig /displaydns shows the DNS resolver cache, including entries preloaded from the Hosts file.
  • ipconfig /flushdns clears that cache. See how to flush the DNS cache for the wider picture.
  • ipconfig /release and ipconfig /renew drop and re-request the DHCP configuration. Releasing disables TCP/IP on adapters set to obtain an address automatically until you renew, so do not run it over a remote session.
  • ipconfig /registerdns triggers manual dynamic registration of the PC's DNS names and addresses.
  • ipconfig /allcompartments appears in the syntax line of the reference, for systems that use network compartments.

To act on one adapter only, give the name as it appears in the output, in quotes if it contains a space. The command also accepts the * wildcard, so Local* matches names that start with Local and *Con* matches names containing Con.

Save the output or read just one adapter

To keep a copy, for example to attach to a support request, redirect it to a file:

ipconfig /all > ipconfig.txt

Read it before sharing. It contains your host name, MAC addresses and local network layout. None of that is a password, but you may prefer to blank it. To see only the lines you care about in Command Prompt, filter with findstr:

ipconfig /all | findstr /C:"IPv4" /C:"Gateway" /C:"DNS Servers" /C:"DHCP Enabled"

In PowerShell the equivalent is ipconfig /all | Select-String "IPv4","Gateway","DNS Servers".

If the output does not show what you need

If you want your own address in the simplest form, finding your IP address covers shorter methods. Remember that ipconfig /all reports only what is configured on your machine. A private address like 192.168.1.42 is normal, and public vs private IP addresses explains why the address a website sees is a different one.

Frequently asked questions

What is the difference between ipconfig and ipconfig /all?
Plain ipconfig shows the basics for each adapter: IPv4 and IPv6 addresses, subnet mask and default gateway. ipconfig /all adds the full configuration, including the adapter description, physical (MAC) address, DHCP details, lease times and DNS servers.
How do I save the ipconfig /all output to a file?
Redirect it with ipconfig /all > ipconfig.txt in Command Prompt or PowerShell. The file is created in the current folder. Check it before sharing it, because it contains your MAC address, host name and local network addresses.
Does ipconfig /all show my public IP address?
No. It shows the addresses configured on your own adapters, which behind a home router are private addresses. Your public IP belongs to the router's connection to your ISP, so you have to look it up from outside, for example with a website that echoes the address it sees.
Why does ipconfig /all list adapters I don't use?
Microsoft's reference says adapters can be physical interfaces or logical ones. Virtual machine software, VPN clients, Bluetooth and Hyper-V all add adapters, and disconnected ones are listed too, with the status Media disconnected.

Sources