How to view my website without a domain?

Hashtags: #hosts #etc #delegate #point #dns

  1. In order to view your website without a domain pointing to it, you need to edit the hosts file located in: C:/Windows/System32/drivers/etc

  2. In that file, add this line at the end:

IPofyourserver yourdomain.com www.yourdomain.com

Example:

66.55.125.22 mysampledomain.com www.mysampledomain.com
  • The IP number is the one of the server where your hosting account is.

  • The domain you choose can be any for temporary use.

  • Keep in mind that you must edit this file with Notepad by opening it with administrator permissions, as shown below:

  1. Then, restart your PC.

  2. That's it. Now, you can test your website using your test domain. Once you have your real domain pointing to your hosting account, you can delete the lines added to the hosts file.

Last updated

Was this helpful?