Home > Featured > Editing a hosts file in Windows 8
Bookmark and Share

Editing a hosts file in Windows 8

Posted on November 03, 2014 | Filed in Featured, 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:

102.54.94.97 myserver.com # First server
38.25.63.10 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.

 

Leave a Reply

Contact Us

Big Apple Design Group
134 West 29th Street
Third Floor
New York, NY 10001

[email protected]

Search Blog