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

Is there anything for Windows?

migrated from serverfault.com Jul 23 '11 at 14:43

This question came from our site for system and network administrators.


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

enter image description here

ipconfig /all | findstr /C:"DHCP Server"

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

  • 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