How to edit a computers host file


Editing HOSTS File within Windows.

If you use a MAC click here

Note: This method will only work if you have access to login as a “Local Administrator”.

In a Windows Based Operating System, you will need to open Notepad, and run it as administrator.

This can usually be found in Start Menu -> All Programs -> Accessories -> Notepad, and right clicking the Icon, and clicking “Run as Administrator

Once you have Notepad Open, Click on File -> Open, and then navigate to the location of the “HOSTS” file, by pasting the below path in the bottom bar.


Note: You need to click the drop-down box on the bottom right of the display box and select "All Files" for the hosts file to be visible.


With the file open you will see a screen like the Image below. You will then need to Add a new Line, for each website you would like to see .delegate-8.png

If Servers Australia is assisting in a migration for you, you will most likely have a list of sites to paste to the bottom of this file.

In this example, we'll add the domain entry: 

This will bypass DNS and tell your computer to load the website from the IP

Now click file -> save.

If you have any browsers open, you will need to close out of them completely and reopen (some browsers have DNS caching).

To confirm you are loading the site from the right server, you can use the Developer Tools in Google Chrome or Firefox browsers.

For Chrome, in Developer Tools. Click on the Network tab and reload the page.

Then right click one of the column names and select "Remote Address". This will enable showing the Remote Address column so you can see where requests are loading from

Now when you visit one of the sites you put in the hosts file, the "Remote Address" column will confirm your loading from the IP set.

Have more questions? Submit a request