In Windows system, the host file is located at C:\Windows\System32\Drivers\etc\hosts.
-
Click Start > All Programs > Accessories > Notepad.
-
Right-click Notepad and select Run as administrator
-
When Notepad opens, then click File > Open.
-
In the File name field, type C:\Windows\System32\Drivers\etc\hosts.
-
Click Open.
-
In last line add <IP> <domain name>
101.102.103.104 yourdomain.com #(you can add a description here)
101.102.103.104 www.yourdomain.com
-
Click File > Save to save your changes.