how to open hosts file on windows code example Example: where is the hosts file in windows 10 Windows 10 and Windows 8 = c:\Windows\System32\Drivers\etc\hosts