How to find my DHCP server IP address via a command prompt in Windows?

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

Is there anything for Windows?


Solution 1:

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

enter image description here

Solution 2:

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

Solution 3:

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