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?

3 Answers

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

enter image description here

0
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

1

You Might Also Like