27

Linux has easy commands to find the DHCP server IP address via a command prompt.

Is there anything for Windows?

3 Answers3

37

The DHCP server used to obtain an address is included in the output of ipconfig /all.

enter image description here

Shane Madden
  • 736
  • 6
  • 8
12
ipconfig /all | findstr /C:"DHCP Server"
Giacomo1968
  • 53,069
  • 19
  • 162
  • 212
Jason Berg
  • 1,094
  • 7
  • 14
7

If your computer has static IP then the ipconfig /all will not show the DHCP server on your network. In this case you can use the following command line to display it.

netsh dhcp show server

mrkozma
  • 71
  • 1
  • 1
  • On my system, `netsh dhcp show server` gives the name of my domain controller. I tried to find the running dhcp server on the DC but could not. `ipconfig /all` showed that my dhcp server was actually a Cisco device. Why the discrepancy between netsh and ipconfig? – Mike S Sep 30 '16 at 22:56