TutorialWindows 10

Hosts File in Windows 10- How to Edit Them

The hosts file is a computer file used by an operating system to map hostnames to IP addresses. The hosts file is a plain text file, and is conventionally named hosts. The hosts file is one of several system facilities that assists in addressing network nodes in a computer network. Sometimes you might want to edit the host file for adding IP address or changing the existing ones.

The host file in Windows is located at  C:\Windows\System32\drivers\etc where C drive is the location where you have installed Windows.

Host file

If you open and edit the hosts file, you will not be able to make changes to this file in this folder. You can open the hosts file using a notepad or textpad, but unless you have administrator rights, you will not be able to edit it.

Host file in windows 10

You get a message while saving it saying you do not have permission to save in this location.

Edit permission host file

So if you want to edit the host file, make sure you take a backup of this file elsewhere and then go to the start menu and search notepad. In the search result, right click on the notepad icon and select Run as administrator.

run as admin

This will open Notepad in admin mode, now browse for the hosts file using the file menu and open it. Once you have made the changes you can now save it in the same location as notepad is running in administrator mode.

Nirmal is a Technology Blogger and a Microsoft MVP in Windows. Blogging has been his passion for more than a decade now, he started with this blog in 2007. He can be contacted at nirmal@nirmaltv.com. You can find Nirmal on , and .

You may also like

Leave a reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

More in:Tutorial