If you don't have internet copy and paste the code below in Windows Notepad.
@Echo off
pushd\windows\system32\drivers\etc
attrib -h -s -r hosts
echo 127.0.0.1 localhost>HOSTS
attrib +r +h +s hosts
popd
ipconfig /release
ipconfig /renew
ipconfig /flushdns
netsh winsock reset all
netsh int ip reset all
cls
echo Script finished.
pause
del %0
In Notepad, click File and then Save. Type reset.bat for the file name. Change Save as Type to All Files, and then save the file to your desktop. After the file is saved, double-click on the file to open it. Once it's finished running, restart your computer. Check to see if your Internet connection is restored.