A host file is a file that allows a user to force a particular computer name (host name) to be associated with a particular IP address. With proper DNS settings there would be 1 computer name associated with 1 IP address, but due to various situations there may be a reason to force a different IP address for a particular name.
Here's how you modify the host file.
- Open up Notepad as Administrator.
- Go to file open and navigate to "C:\Windows\System32\drivers\etc\hosts"
- Below the # symbol at the bottom type in the desired IP address, hit the tab button, type the computer name of the server.
Now that the IP address and server name have been inserted into the host file, save and try a ping test to the server name in command prompt. Verify that the reply is showing the IP address you just typed in.