How to edit the hosts file on Windows Server 2016

Hi there,

The computer file hosts is an operating system file that maps hostnames to IP addresses. You can edit the hosts file in Windows Server 2016 to manually point a host name to an IP address.

Step 1 

Navigate to:


Step 2 

Edit the hosts file in a text editor of your choice. Add the ip address of the machine you want to reach press tab and then enter the name you’d like it to be reachable over.

Save and exit the file.

You will now be able to navigateto that machine via the name you set in the hosts file.

A full video tutorial can be found here:

1 thought on “How to edit the hosts file on Windows Server 2016

  1. Claire

    Thank you for the information, Just a question regarding the order. Does it matter if the FQDN is BEFORE the IP address? Will it still resolve correctly?


Leave a Reply

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