A DHCP server automatically provides IP addresses, the address of the default gateway as well as that of a DNS server to all to all the client computers on its network, whenever its requested to do so.
By default Windows 8 is configured to get all these details from a DHCP server when connected. I rare cases this setting might not be enabled by default, or might have been changed by the administrator. Here is how to enable it on Windows 8.
1. Press the Win+R hot key to initiate the Run dialog box. Type NCPA.CPL and press Enter.
2. Right click on the NIC card icon for which you want DHCP to be enabled. Next click on the Properties option
3. In the properties dialog box that open, double click on the option Internet protocol version 4 (TCP/IPv4)
Make sure that you disable the settings for remote connection once you are done with it in order to avoid unauthorized access of your system.