40 Configure Domain Name Localhost New

Change localhost to domain name in window ad your favorite domain name method two.
Configure domain name localhost. Alternatively search for iis manger in start window. Debug localhost website with custom domain in visual studio now let s see how to debug a localhost website with the custom domain. In this article i will create example test domain name.
You may only enter 1 name per line. Now you need to configure the home page for your custom domain. If your custom domain name matches with an existing website your browser will open the localhost instead of the website while your local server is running.
In this file we have to add one more line in the first ipv4. See the section in the red box in the image above. 127 0 0 1 localhost 127 0 1 1 hostname the following lines are desirable for ipv6 capable hosts 1 ip6 localhost ip6 loopback fe00 0 ip6 localnet ff00 0 ip6 mcastprefix ff02 1 ip6 allnodes ff02 2 ip6 allrouters.
Open iis click win r enter inetmgr in the dialog and click ok. Benefits of using a domain name is that you don t have to remember your ip address. Local hostname and the domain name of your server defined in text configuration file located in etc directory.
However you can also create a custom domain name for you local server instead of using localhost this article explains the process to create your own custom domain name instead of using localhost here hackdx md is created as our domain which can be taken as per need. Get your domain name you want to use for your server. For this change your publishing profile and set the debug configuration as shown below.
To change your localhost to domain name all you need to do is run your wamp server and go to localhost page. Left click on the wamp icon in the notification area and click on www directory. 3 add lines containing the domain name s and ip address to redirect to.