Setting up and using windows HOST file

Host files used in windows to describe many-to-one mapping of device names to IP addresses. Using this file is helpful when developing locally as it allows you to assign the URL of the site to a local IP.

First, find you host file:
Windows NT/2000/XP Pro c:\winnt\system32\drivers\etc\hosts
Windows XP Home c:\windows\system32\drivers\etc\hosts

The HOST file doesn't have an extention and can be opened with notepad.

** Before we go any further make sure you back this up - just in case ***

Posted: 21-Feb-2006

View: 14661

Permalink: here

Comments

Please, please, please... if you should happen to tweak the hosts file then later call any computer or software company to request support, please *remember* to tell them that you have edited this file. It may save countless hours of frustration :) On *nix, this is often one of the first things examined in the discovery of information, but on Windows its frequently overlooked.

#1 Steven Erat
21/Feb/06 1:16 PM

and when you're sat there scratching your head why an entry you put in your hosts file doesn't work - check the directory to make sure you ain't saved it with a .txt file!

Or better yet...why you're seeing a different site than what you're expecting - get rid of the entry you previously put in the hosts file!!!!

#2 johnb
21/Feb/06 2:07 PM

I would like to thank you for the efforts you have made in writing this post. http://www.yourlistings.org/

#3 sara
12/Aug/11 1:21 PM

I would like to thank you for the efforts you have made in writing this post. http://www.yourlistings.org/

#4 sara
12/Aug/11 1:22 PM