I have created a website using Visual Studio 2010 Express and pasted it inside C:\intpub\wwwroot\ as it is. I have Windows7 home premium with iis7. Now inside IIS Manager I converted that directory into Application named newapp.
Now to access this application I am using http://localhost/newapp/ and on LAN I am using http://ipaddress/newapp/. It is working perfect.
I want to access this application without specifying the IP address each time.
How can I able to replace the IP address with some domain name to access the website? for ex, http://somename.com/newapp/.
I have created a website using Visual Studio 2010 Express and pasted it inside
Share
note:please keep a backup copy of your existing host file before making any change
Open notepad or similar software as administrator then navigate to:
and open the hosts file.
make entry for your ip addess as shown below
now type in the mapped host name in your web browser