Editing a hosts file in Windows 8
Typically editing the “hosts” file is useful for testing new websites under development.
It essentially, creates and exception to the normal working of the internet.
1. Run Notepad as an Administrator. This is so that you edit and save the “hosts” file.
2. Open the file called “hosts” located here: C:WindowsSystem32Driversetc
Notepad will look for files with the extension .txt. So you need to change the TXT setting to “All files” to be able to open the “hosts” file.
3. Once the file is open you will need to paste in info that follows the following syntax:
220.127.116.11 myserver.com # First server
18.104.22.168 yourserver.com # Second server
As soon as you save the hosts file, when you browse for myserver.com or yourserver.com, you will be shown the website at the two IP addresses specified above.