How to open the hosts file on Windows - The hosts file stores the device's IP information

Anyone who uses Windows knows that the hosts file is a file that stores IP information of servers and domain names pointed to. With this hosts file, users can take advantage of it to edit the system, change the system to serve many different purposes, such as adjusting system parameters, blocking access to websites or redirecting websites, and some more. command line in the hosts file to access blocked Facebook, etc.

First, if you want to edit the hosts file, the user needs to open the hosts file on the computer system. So how to open the hosts file on the computer? Readers, please follow the article below from Network Administrator.

What is the hosts file?

The hosts file is a computer file used in the operating system to map host names to IP addresses. The hosts file is a plain text file and is traditionally named hosts.

The hosts file is one of the system means that supports addressing nodes in a computer network. It is a common part of operating systems' Internet Protocol (IP) implementations and serves the function of translating human-friendly hostnames into numeric protocol addresses, called IP addresses, that identify and Locate the server in the IP network.

For various reasons, it may be necessary to update the hosts file on your computer to properly resolve a website by its domain name. The most common reason for this is that it allows people to view or publish web content immediately after purchasing a new domain name or transferring an existing domain name to another ISP (Internet Service Provider).

New and transferred domains have delays that can range from a few hours to a few days. During this time, new or transferred domain information spreads across the Internet and is often unavailable.

If you need to update your website immediately and can't wait for the domain information to spread across the Internet, you can edit this file on your computer as a temporary job.

Please note, this job is only valid on the computer or server where the change was made. It will not make the website available to anyone on the Internet.

The Windows operating system contains a file called "hosts" that will force the resolution of your domain name.

How to read hosts file on Windows computer

Step 1:

We will need to find the folder containing the hosts file on the system. By default the hosts file will be stored in drive C. There are 2 ways for you to immediately find the folder containing the hosts file.

Method 1:

We open the Run dialog box by pressing the Windows + R key combination. Then enter the folder path C:WindowsSystem32driversetc into the Run dialog box, click OK to access.

How to open the hosts file on Windows - The hosts file stores the device's IP information Picture 1

Method 2:

In the Windows search bar on the computer interface, we also enter the path C:WindowsSystem32driversetc. Immediately the folder containing the hosts file will appear. Click on the results found.

How to open the hosts file on Windows - The hosts file stores the device's IP information Picture 2

Step 2:

Once you have entered the folder containing the hosts file, right-click on the hosts file and select Open With .

How to open the hosts file on Windows - The hosts file stores the device's IP information Picture 3

Step 3:

In the How do you want to open this folder interface, we choose the program to open this hosts file. Normally, you will click on Notepad and then click OK. But in addition, we can also open the hosts file through Word or another editing tool.

How to open the hosts file on Windows - The hosts file stores the device's IP information Picture 4

Immediately after that the hosts file on the system will be opened.

How to open the hosts file on Windows - The hosts file stores the device's IP information Picture 5

Step 4:

In case you want to edit the hosts file on your computer, you must first open Notepad with Admin rights , then click File and find the path C:WindowsSystem32driversetc to open and edit the hosts file.

How to open the hosts file on Windows - The hosts file stores the device's IP information Picture 6

Opening the hosts file on your computer is a basic and simple operation to perform. We can quickly access folders through the Run interface or the search bar on Windows. After opening the hosts file, users can edit the content and then press the Save button to save the new changes to the hosts file.

5 ★ | 1 Vote

May be interested

  • How to open the Host file on Windows 10, edit the hosts fileHow to open the Host file on Windows 10, edit the hosts file
    how to open the host file on windows 10 helps users to edit the host file, manage access to web sites on computers and laptops. the following article will guide you how to open and edit the host file on windows 10 simply and quickly.
  • How to fix the hosts file on Windows 10How to fix the hosts file on Windows 10
    sometimes, for some reason, you need to edit the host file on your computer, but you cannot edit because when saving the host file, you don't know how to open the host file…. if you do not know how to edit the host file on windows, then you please
  • How to Edit the Hosts File on a MacHow to Edit the Hosts File on a Mac
    editing your /etc/hosts file is useful for testing a new website. it allows you to point a domain name (such as www.mynewdomain.com) at a custom ip address on your local computer only. in this article, we will use the ip address 1.2.3.4 as...
  • What is a .tmp file? How to open .tmp file on Windows computer?What is a .tmp file? How to open .tmp file on Windows computer?
    the article provides information about what a tmp file is, how to open a tmp file, how to delete a tmp file and answer frequently asked questions about tmp files. nguyen humanity what is the generated tmp file? let's see it now!
  • How to Fix JPG file cannot be opened error in Windows 10How to Fix JPG file cannot be opened error in Windows 10
    outdated windows versions, corrupted file systems, or third-party application conflicts may prevent you from opening jpg files.
  • How to open, run the .jar file on a Windows computer?How to open, run the .jar file on a Windows computer?
    to open a .jar file on a windows computer you will have to install the java runtime environment (jre). alternatively, you can use decompression software to view the files attached to the .jar file. if you want to find out more about the steps to run the .jar file and see the files attached in the .jar file, please refer to the following article of network administrator.
  • 10 ways to open Bluetooth File Transfer utility on Windows 1110 ways to open Bluetooth File Transfer utility on Windows 11
    bluetooth is an incredibly popular means of connecting two devices. you can use bluetooth to wirelessly connect audio accessories and other peripherals to your computer. alternatively, you can also send and receive files using the bluetooth file transfer utility in windows 11.
  • What is IPSW file?What is IPSW file?
    a file with ipsw extension is an apple device software update file that is used on iphone, ipod touch, ipad and apple tv devices. this is an archive file format that stores encrypted dmg files and other files like plists, bbfws and im4p.
  • How to Open a BIN FileHow to Open a BIN File
    if you recently downloaded an image file of an old game or program from many years ago, you may be wondering how to open the file on your computer. bin is an old file type that contains all the information of the original cd or dvd. you cannot directly open the bin file; to enable it, you need to either burn it to a blank disc or mount it to a virtual drive. you can also convert bin files to iso to use more compatible disc burning or mounting programs.
  • How to open a VCF file on the computerHow to open a VCF file on the computer
    how to open a vcf file on the computer. vcf file is a regular vcard file to store information such as contacts, phone numbers, mail addresses, etc., compressed in a compact and safe size. if you do not know how to open vcf file on your computer, please refer to the article below!