How to patch/unpatch your HOSTS file Print

  • 56

Windows:

  1. Find Notepad in your start menu, right-click and select "Run as Administrator". Click "Yes" to the User Account Control dialog (if prompted).





  2. Click File --> Open
  3. At the bottom right of the Open window, select "All Files" from the Dropdown menu



  4. Browse to "C:\Windows\System 32\Drivers\etc\"



  5. Select "hosts" and click Open



  6. Add the host mappings that we provide you to the end of the document, it will be in the format of "IPAddress SiteURL" (eg. 123.456.78.90 www.abc.de)



  7. Click File --> Save and close the window
  8. Your hosts file should now be patched
  9. We recommend you clear your browser cache before accessing the website to ensure you are loading the website from the new server
  10. UNPATCH: *Be sure to unpatch the computer once the website has gone live by going through steps 1-6 but delete the host mappings instead of adding.


Mac OS:

  1. Open Terminal in your Applications --> Utilities folder



  2. Open the hosts file by typing in the terminal (replace % with forward-slash /):
    sudo nano %private%etc%hosts



  3. Type in your computer user password when prompted
  4. Navigate with your arrow keys to the end of the document and add host mappings that we provide you, it will be in the format of "IPAddress SiteURL" (eg. 123.456.78.90 www.abc.de)



  5. Press Control+O to save
  6. Press Enter at the filename prompt then press Control+X to exit



  7. Your hosts file should now be patched
  8. We recommend you clear your browser cache before accessing the website to ensure you are loading the website from the new server
  9. UNPATCH: *Be sure to unpatch the computer once the website has gone live by going through steps 1-4 but delete the host mappings instead of adding.

Was this answer helpful?

« Back