Where is the HOSTS file located
PC Setup Free

Where is the HOSTS file located

5.0 (2 ratings) Hover and click a star to rate
Downloads
0
Size
Rating
5.0 / 5
License
Freeware

Description

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

Size
LicenseFreeware
Views2 277

Popular downloads

Show more
Windows Movie Maker

Windows Movie Maker

Video Editors
3.9

Windows Movie Maker - quickly and conveniently creates and edits videos by adding various effects. Included in Microsoft Windows, the alternative Windows Movie Maker is part of the free Windows Live software package from Microsoft. Features of Windows Movie Maker: Capture video from various sources (camcorders, mobile phones, digital video cameras, digital cameras, etc.). When creating videos in Windows Movie Maker, you can add a background audio track, use between

1 061 824 7.02 Мб
Download
Starus File Recovery

Starus File Recovery

Recovery Programs
5.0

Starus File Recovery is a program that allows you to recover deleted data from various media. With this program, you can restore files that have been lost in various ways. For example, they were deleted bypassing the Recycle Bin, hidden by malicious software, lost due to software failures, complete emptying of the Recycle Bin, formatting, or deletion of the hard drive. The program effectively works with various devices, such as hard drives, SS

190 009 14.08 Мб
Download
PROMT

PROMT

English to Russian translators
3.3

PROMT - leader in offline and online translation, with the most powerful collection of dictionaries and translated language pairs, 60 language pairs. LLC "PROMT" - a leading Russian company, developer of translation systems for private users and corporations. PROMT software provides translation of any text using built-in dictionaries, including both common and specialized terms. Instructions for any devices, in necessary software lacking a Russian interface, or emails from a foreign company

46 864 794.00 Мб
Download
Pascal ABC

Pascal ABC

Programming
4.1

Pascal ABC.NET is written in the Delphi language (Object Pascal) on the Microsoft.NET platform. It includes the PT4 problem book, and tools for the Draftsman and Robot performers, which are used in school computer science when learning programming. The main purpose of the Pascal ABC.NET programming system is the study and teaching of modern programming languages. Features This program is a complete programming system using the Pascal language. Development takes place on the well-known platform Micros

41 458 67.70 Мб
Download