Command reference

ipconfig /all

Display detailed TCP/IP configuration for every Windows network adapter.

Syntax
ipconfig /all
Purpose
Shows connection state, physical address, DHCP status, assigned addresses, default gateway, DNS servers, and lease details.
Administrator
No — the command is read-only.
Risk
Read-only, but output can expose local addresses, adapter identifiers, DNS suffixes, and physical addresses; redact before sharing.
Windows support
Windows 11 and Windows 10

When to use it

  • Checking whether DHCP assigned a usable address and gateway
  • Finding the active adapter and configured DNS servers
  • Comparing configuration before and after a network change

When not to use it

  • You need proof that a gateway or server is reachable
  • You intend to publish or send the complete output without review

Steps

  1. Open Terminal or Command Prompt and run the command.
  2. Find the adapter marked Media connected that corresponds to the connection being tested.
  3. Read IPv4 Address, DHCP Enabled, Default Gateway, DNS Servers, and lease fields together.

Expected result

Windows lists every physical and virtual adapter. Media disconnected is normal for unused adapters; an active DHCP adapter normally has an address, gateway, DNS servers, and lease.

Limitations

  • It reports configuration at one moment and does not test reachability, packet loss, or internet service.
  • Virtual and tunnel adapters can be active without being the path used by ordinary traffic.