“hosts” is a text file used by operating system to map host name to IP address. The location of “hosts” ins windows 10 is as follows:

C:\Windows\System32\drivers\etc

To add mapping in “hosts” file, open the file as Administrator in notepad++ and add mapping as below:

127.0.0.1       localhost
192.168.0.17     mysite.com
192.168.0.18     mysite2.com

Advertisements