1. Press the Windows key.
2. Type "Notepad" in the search field.
3. In the search results, right-click Notepad, then click Run as administrator.
4. Click File, then click Open.
5. Open the following file using this file path: c:\Windows\System32\Drivers\etc\hosts
6. If requested, open the file with Notepad.
7. Underneath the text "::1 localhost", type in the IP address of your server and the name of your website.
Syntax as follows: (IP Address) (Domain Name)
Always type two entries for the one domain name, i.e. www.example.com, followed by example.com.
8. Click File, then click Save.