There was a problem loading the comments.

How to edit your hosts file on Windows

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

Editing your Hosts File

NOTE: The steps in this guide are advanced and require Administrator privileges on your device. Please only proceed if you're comfortable with making advanced changes. Incorrect configurations in the System32 directory can render your device unusable.

 

1) Search for Notepad in your Start Menu, right-click and then select 'Run as administrator'

 

8d18496356d41aaa11ff9679cd0f5f44392b1713cc3c0a8448552c70eb1f4aee94205188c3e6086a?t=21da75be720d700ecf7ec3a1349a4a08

 

2) Open your hosts file by clicking File>Open , then in the top bar, paste C:\WINDOWS\System32\drivers\etc

4fc1fbcc82007a60efcb571c6358d329a63d9a308fdcacea133ff038a036ef197bb165e45be669a0?t=598879217dd3e5461a076c43c1e30c79

Select the drop-down that says 'Text Documents' and change it to 'All Files'

94e223b89378d0647e4b229a15709bdccdb664075ab076a2f25456cc06c0c570614dd66d2f059ec7?t=a69c8440b46f28c51a55834d291e1d29

Select the file named 'hosts' and then click 'Open'

2c94a910c525755944e1650c8ea040c453ff992d369dcd81a8a54ecb13b1645a39219a7a7e2b59ca?t=136f16894ca88dc704afff45b3ddce9c

 

3) Add the content to your hosts file. Examples below.

 

If you have created a website named 'mynewwebsite.co.uk' on a new hosting account, you will need to get the IP Address of the server it sits on. If you're hosting this with us, it will be in your welcome email, or can be found in your client area when you click on the service.

For this example, 'mynewwebsite.co.uk' is configured on server with IP Address 1.2.3.4. 

 

Add the following line beneath the existing text in your hosts file:

1.2.3.4 mynewwebsite.co.uk

 

2a15e5a6713fdc7dde251627c07bd46971a8873007951082b3becb1451c5cfbcf68e5805c4a64ee1?t=b285b7911052ff325c7582be790562d7

 

Now, save the file. 

 

If you visit the website in your browser, you should now be seeing the version hosted on our servers (or whichever server you're pointing to).

 

Remember to revert this change when you switch DNS. Also note that you may get SSL/TLS errors in your browser when you have this configured, it's totally normal and is due to SSL name mismatch since the site is being served from a server other than what your publicly configured SSL certificate claims.


Share via

Related Articles

© Zarro Technology