How to find my DHCP server IP address via a command prompt in Windows?
The DHCP server used to obtain an address is included in the output of ipconfig /all
.
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