skip to content »

Updating host file in xp

Note: Once you update your host file, your local machine will display your new website as though it was live to the world.

The workaround was to put an entry into the host file for the front end server.When creating or updating a website on a new server, you may need to update the host file on your local PC in order to see the staged version of the new site prior to the site’s launch.This is actually a very simple procedure, so don’t panic!You'll be able to ask any tech support questions, or chat with the community and help others.Below is a script that I wrote to address a problem we were having at our clients.So now that I had the fix, did I want to connect to every XP machine and edit the host file. To quickly fix this, I wrote a down and dirty version of this script with the host entry statically in the script.

It was 4 lines, simply opening the host file, writing the line and closing the file.

Most hosts files will have several entries for loopback.

We can use that for the basic example for the typical syntax.

If you’re using Windows 10 this will be on the Start Menu.

The Hosts file in Windows 10/8/7, is used to map host names to IP addresses.

This Hosts file is located deep down in the Windows folder.