How to Edit the hosts File on Windows 10 or 11

Looking for:

- Hosts entry file empty - Microsoft Community 













































   

 

- download host file for windows 10 Code Example



  Hosts entry file empty. Hello everyone,. I have some stuff I have to do for school and one of the things was to block facebook in the hosts. › files › details › hosts_file_for_windows.  


How to reset the Hosts file back to the default



 

The Hosts file is used by the operating system to map human-friendly hostnames to numerical Internet Protocol IP addresses which identify and locate a host in an IP network. The hosts file is one of several system resources that address network nodes in a computer network and is a common part of an operating system's IP implementation.

The Hosts file contains lines of text consisting of an IP address in the first text field followed by one or more host names. Each field is separated by white space Tabs are often preferred for historical reasons, but spaces are also used.

Comment lines may be included, and they are indicated by a hash character in the first position of such lines. Entirely blank lines in the file are ignored. If the Hosts file is changed from default, resetting it can help resolve some connectivity issues. To reset the Hosts file back to the default, follow these steps according to your operating system:. Open Notepad. Copy the following text, and then paste the text into the file: Copyright c Microsoft Corp.

This file contains the mappings of IP addresses to host names. Each entry should be kept on an individual line. The IP address should be placed in the first column followed by the corresponding host name. The IP address and the host name should be separated by at least one space. Additionally, comments such as these may be inserted on individual lines or following the machine name denoted by a ' ' symbol. For example: On the File menu, select Save as , type "hosts" in the File name box as displayed in the following image , and then save the file to the desktop.

Tap and hold or right-click the Hosts file, select Rename , and then rename the file as "Hosts. If you are prompted to enter an administrator password, select Continue. To do this, swipe in from the right edge of the screen, tap Search , type Notepad, and then tap the Notepad icon. Or, if you are using a mouse, point to the upper-right corner of the screen, move the mouse pointer down, click Search , type Notepad, and then click Notepad. Swipe in from the right edge of the screen, tap Search , type run, and then tap the Run icon.

Or, if you are using a mouse, point to the upper-right corner of the screen, move the mouse pointer down, select Search , type run, and then select the Run icon. Select the Hosts file, select Rename , and then rename the file as "Hosts. If you are prompted to enter an administrator password, tap or click Continue. On the File menu, select Save as , type "hosts" in the File name box, and then save the file to the desktop. Microsoft ended support for Windows XP on April 8, This change has affected your software updates and security options.

Learn what this means for you and how to stay protected. Microsoft ended support for Windows Server on July 14, How to reset the Hosts file back to the default Windows 8 Windows 8. To reset the Hosts file back to the default, follow these steps: Open Notepad. Close Notepad. To do this, follow these steps: Swipe in from the right edge of the screen, tap Search , type run, and then tap the Run icon.

Select the Hosts file, and rename it "Hosts. Need more help? Expand your skills. Get new features first. A subscription to make the most of your time. Try one month free. Was this information helpful? Yes No. Any other feedback?

The more you tell us, the more we can help. How can we improve? Send No thanks. Thank you for your feedback!

   


Comments

Popular Posts