Windows 7
From the desktop click Start, the Control Panel, then select Network and Sharing Center. Click Manage Network Connections, then right-click on the network connection listed that you use to connect to the local network and Internet (titled “Local Area Connection”) and then click Properties in the drop-down menu.
Scroll down the list of protocols and client applications and highlight Internet Protocol Version 4 (TCP/IPv4) and click Properties.
Select the "Obtain an IP address automatically" radio button and the "Obtain DNS server address automatically" radio button.
Now click OK, and exit back to the Desktop.
Windows 10
Right click on Start menu and go to Control Panel
Click on Network and Internet and select Network and Sharing Center
Click on Change adapter settings
Right click on Wi-Fi (Laptop) or Ethernet (Desktop) and go to Properties
Scroll down and double-click on Internet Protocol Version 4 (TCP/IPv4)
Select "Obtain an IP address automatically" radio button and the "Obtain DNS server address automatically" radio button.
Click OK
Click on the Apple Menu Icon in the upper left corner of the screen.
Select System Preferences.
Click on the Network system preference.
Select the TCP/IP tab.
From the Configure IPv4 menu, select "Using DHCP".
Click the "Apply Now" button.