
Once the folder opens, drag and drop the hosts file from the desktop into the folder.Now, open this location: %WinDir%\System32\Drivers\Etc You can do this by opening Run and pasting the location here.Save it on the desktop so that you can easily access it in the next few steps (this is because you don’t want to save the file as a. Once you’ve pasted the text into Notepad, save the file as “hosts” – include the quotes.Different hosts file contents exist for different Windows versions (although they vary slightly) Go to this page and copy the text of the hosts file for your OS version.How to Restore the Hosts File Back to Default in Windows Restart the Mac to get things rolling again.Choose Replace and authenticate with the admin password when asked for it. You will be asked about the existing hosts file.Step #9. Drag the hosts file from the desktop back to the /private/etc/ folder.Open the Go to Folder window and open /private/etc/hosts again.Or, click on File from the top menu bar and then select Save. Save this file by clicking on the red close button.# localhost is used to configure the loopback interface Copy the following piece of text and paste it into the hosts file.Erase everything in it by pressing Command + A to select all and then press the delete key.Double-click the hosts file (on the desktop), and it will open in TextEdit (or any default text editor on your Mac).(We are doing this because we can’t open directly and edit it.)



But in case you do not, you can still recover the original version as explained below. Of course, you should keep a backup of it before editing. It can be edited to test certain network aspects or to troubleshoot connectivity issues. The simplest explanation is that it is a text file used by your computer to map a connection between an IP address and domain names. How to Restore the Hosts File Back to Default in Windows.How to Reset the Hosts File Back to Default in macOS.Of course, you would have ideally created a backup copy of the original, but in the event that you didn’t, here’s how to reset the hosts file to default in macOS and Windows. If you have updated the file many times, the original version is gone. When you encounter an iTunes error like 3194, network failures, or connectivity issues, it is recommended to edit the hosts file.
