Step 1: Open Run from start menu in Windows.
Step 2: Enter drivers and click OK.
Step 3: Navigate to ‘etc’ folder and then open/edit the ‘hosts’ file.
Step 4: Add an entery as below
server_ip_address yourwebsite.com (eg: 127.0.0.1 mywebsite.com)
Step 5: Now open a browser and then view yourwebsite.com