How to edit hosts file

You need to see the file on testing server before you launch it live. For that, edit hosts file to make your computer “think” that the new location is where the web site is located.

Open Notepad as Administrator
Open Notepad as Administrator

Find hosts file
The hosts file is located under C:\Windows\System32\drivers\etc

 

Edit hosts file Add entries in pairs: IP-hostname
Add entries in pairs: IP-hostname