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…

  • $9000 off Our Newest Premium Template: PT3!
  • 55% off all fixed cost modules!
  • Extended Early Bird Pricing to REW Summit 2014
  • $200 in Hosting Savings
  • & More...

Read All About It!

Our Best LEC Ever is selling out Fast!

See the Super-Awesome!