Where is the HOSTS file located
Article PC Setup

Where is the HOSTS file located

5.0 (2 ratings) Hover and click a star to rate
Views
2 277
Rating
5.0 / 5

Where is the hosts file and how to find it - this question is often asked by experienced users who need to make edits to it. The hosts file is used to map a called domain to a specified IP address. Typically, this file contains 1 line:

  • 127.0.0.1 localhost

Which essentially maps the IP address 127.0.0.1, which is the IP address of the local machine (current computer), to the domain localhost. However, this line in Windows is just for show :) If you delete it, the localhost domain will still map to the specified IP address 127.0.0.1.

[caption id="attachment_1452" align="aligncenter" width="588"]Where is the HOSTS file Where is the HOSTS file[/caption]

Where is hosts located

The hosts file is located in Windows at the path "C:\Windows\System32\drivers\etc".

Attention!

Do not confuse the hosts file with the hosts.ics file, which is intended for completely different purposes. The hosts file has no extension, and this file can also be hidden. We recommend that you enable the display of hidden files in Windows, and then make the hosts file not hidden so that both you and some programs can access it without issues.

How does it work?

As already mentioned, the hosts file sets a mapping of a domain to a certain IP address. It was also mentioned that the IP address 127.0.0.1 is the address of the local machine, i.e., the address of the current machine.

Typically, the localhost address (127.0.0.1) is used by some programs that display information in a WEB view. For example, the address 127.0.0.1 and a certain port of this address are used by the Connectify Dispatcher program to display the speed graph of combined connections.

Try making changes to this file yourself, for example, to redirect a certain site to the local machine. Suppose you want to block access to the site www.example.com, but you don't know how to do it. The hosts file will help you here.

Enter the following information into this file, then be sure to save the changes:

  • 127.0.0.1 www.example.com

That's it, now the site www.example.com will point to the local machine, meaning it will not be accessible. And if you reserve a certain port on this address and attach a Listener to that port, you can even display some custom information. For example, a message "This site is unavailable." This is how access is blocked for key verification in some programs, such as Techsmith Camtasia Studio.

To trick this program, the following information is specified in the hosts file:

  • 127.0.0.1 activation.cloud.techsmith.com

The specified domain is the key verification address for Camtasia. That is, the program will try to access its verification center, and Windows will redirect it to the local machine. The program will thus think that there is no internet connection and will skip the verification procedure for the keys entered by the user.

The hosts file is also used by the software product Denwer, popular among developers, which allows running the Apache Web server with PHP and MySQL installed on it to test scripts on the local machine, i.e., without an internet connection.

You might be interested in programs for working with the system:

Good luck!

Specifications

Views2 277

Site.articles.relatedCategory

Show more

It is not uncommon for the internet to occasionally disappear, or even disappear completely. Most often, people immediately call technical specialists or contact their internet provider's support service. However, the problem often lies in some small detail that can be easily fixed on your own! First of all: you should determine the source of the problem. Does your internet disappear every half hour, or every hour? Perhaps the internet connects and Windows reports that everything is fine, but

76 846
Read

If your graphics card is overheating, you should not delay, because if you do nothing about it for a long time, the graphics card will at best burn out, and at worst, it may catch fire with a blue flame, damaging the entire computer. Overheating is very dangerous, remember that! Why is your graphics card overheating at all? Most often, the problem lies in a weak cooler that simply cannot handle the load. In this case, you should simply replace it, or even better, install

26 757
Read

If Windows does not see the printer, the problem almost always lies in driver issues. However, we also recommend checking the clarity of the printer cable connections to the computer, as well as the functionality of the printer itself. If the connections are established and the printer is working, you should install/reinstall the printer driver in the Windows OS. This procedure is quite easy and will not take much time and effort. 1) Launch "Device Manager", to do this, open "Control Panel"

25 758
Read
Windows XP won't load

Windows XP won't load

PC Setup
4.7

It is not uncommon for users to experience that the Windows XP operating system does not load. As a rule, this happens for no apparent reason, since the OS was loading normally not long ago, and then problems suddenly arose. There can be many reasons for this, and there are a number of the most common causes why the OS stops loading. Also, you should pay attention to how exactly the OS does not load—whether it does not load at all or stops loading after the Windows XP logo with a progress bar appears.

11 384
Read

Site.articles.relatedPopular

Show more

By becoming a member of the Friend Around social network, you will ensure the opportunity for new acquaintances and find many friends! Every participating user in the social network has many friends and girlfriends, just new acquaintances in this network! Thanks to the modest application, you can often communicate with friends on common topics! Using the features of this social network, you can find your soulmate, and other users can help with this! [toc] On the website, you can quickly download the program and become a user of the Friend Around program

368 990
Read

The default welcome page of the Google Chrome browser looks, perhaps, empty and unclear. Now we'll figure out what a welcome page is and what it is for. [toc] When you start the browser, the first thing you see is the start page! It is also called the quick access page, or the welcome page. Welcome page - what is it? Actually, these are slightly different concepts, especially when it comes to the default welcome page of the Google Chrome browser. So, now we know what

151 556
Read

How to download a Windows 7 ISO image from the Microsoft website? Today it is possible, there is no longer a need to search for the OS on the Internet, risking infecting your own computer with a virus. There are many different builds of this operating system on the web. It is best to download the original Windows 7 ISO image, as it is considered the best. You don't need to download it from torrent trackers, it is available on the Microsoft website. However, there are certain nuances. At the link https://www.microsoft.com/ru-ru/

107 053
Read

Social networks - they are used by absolutely everyone who uses the Internet, just as the phone once gained incredible popularity - today social networks enjoy incredible universal popularity. [toc] Perhaps in the near future every inhabitant of the Earth will have their own account in one or another social network. As a rule, it is impossible or quite difficult to delete an account in social networks; it still remains in the system, no matter what you do. The Social Network Friend Around is no exception - in which

103 258
Read