Hosts file in windows


How to set the hosts file in Windows.

If you are moving your site to a new server and want to view your site before you've switched the DNS you can do this by editing the hosts file in windows XP pro.

1) Open the file c:\windows\system32\drivers\etc\hosts

2) Add the IP of the new server and the URL. When we moved here was the entry in my hosts file.       localhost

Then I closed all my browser windows and opened to verify that the move was successful.

Once verified I added removed that line from the hosts file.


Aaron Brunt Programmer


Enjoy this post? Why not share with friends or add a comment of your own?

Share your thoughts…