How To Edit the Hosts File on Windows

The Windows Hosts file can be edited to show the addresses of the hosts.Most people don't need to change this file, but sometimes it is necessary.You can learn how to open, edit and save the Windows Hosts file.

Step 1: The key is on the keyboard.

The search bar is opened by this.

Step 2: Go to the search bar and type notepad.

Just type the word and wait for the results to appear.

Step 3: Click on the notepad in the search results.

A menu will be expanded.

Step 4: As administrator, click Run.

The Notepad opens as an administrator.To open the app, you may have to click on a security warning.

Step 5: Click the file menu to open it.

This opens the file chooser.

Step 6: The path contains the hosts file.

The hosts file can be found at c:WindowsSystem32Drivers.You can paste that path into the bar at the top of the window.

Step 7: All files can be selected from the drop-down menu.

The menu is at the bottom of the window.You should see a few files, including the hosts file.

Step 8: Click Open if you want to open the hosts file.

The hosts file is open for editing.

Step 9: Make changes to the file.

The correct lines can be added to the file when it is open.The first thing you'll want to do when you add a line to the hosts file is to enter the internet protocol address.Keep each entry on its own line if you separated the two with a space or tab.The lines that start with a symbol called # are considered comments.If you want to add a symbol to the beginning, just add it.If you accidentally disabled something you can easily reactivate old entries.

Step 10: You can save the file by clicking the File menu.

You can save your changes to the hosts file.