Windows

ipconfig

SafeShow/refresh IP configuration

ipconfig /all

Shows IP, subnet, gateway, DNS and DHCP state. /flushdns clears the DNS cache; /renew re-acquires a DHCP lease.

Examples

  • ipconfig /allFull detail incl. MAC/DNS/DHCP
  • ipconfig /flushdnsClear the DNS resolver cache

Syntax

ipconfig [/all] [/release] [/renew] [/flushdns]

Before you run it

Read/refresh only.

Used when you see

No network connectivity
2
Confirm IP/DNS are assigned169.254.x means DHCP failed
See the whole flow →
Name resolution problems
2
Flush the DNS cacheRun /flushdns
See the whole flow →
Clients can't get an IP
3
Release/renew on the clientrelease/renew; a 169.254 address proves the server never answered.
See the whole flow →

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store