Modify your Windows hosts file

Modified on Thu, 14 Oct, 2021 at 7:41 PM

By modifying your Windows hosts file, you can point your browser to a different server just for you. Other users on the internet will still view the website on the original IP address. This is useful in case you want to debug the website on an other server.

  1. Click on the Start menu and search for Notepad.
  2. Right click on Notepad and execute the application as Administrator.
  3. Grant permission to Windows.
  4. Click on File and choose Open.
  5. Enter the filename C:\Windows\System32\drivers\etc\hosts and click on Open.
  6. Enter the server's IP address on a new row along with the domain name. Example:
    127.0.0.1 yourwebsite.com
  7. Click on File and click on Save.

In case you want to reverse the modified Windows hosts file, use the same steps but remove the row(s) in step 6 instead of removing them.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article