where is the hosts files in windows server 2008 code example Example: windows hosts file location Hosts file location: C:\Windows\System32\Drivers\Etc\hosts