I have created a .Net Web Application. Now i need to run my application under my machine IP instead of local host.
Can anybody give me the solution?
|
I have created a .Net Web Application. Now i need to run my application under my machine IP instead of local host. Can anybody give me the solution? | |||
|
feedback
|
This question came from our site for professional and enthusiast programmers.
|
This happens normally on windows vista - where HOSTS file contains the IP V6 entry for local host which is not resolved. Edit your HOSTS file; C:\Windows\System32\drivers\etc\hosts Find following line:
comment it by adding # at line start
and add following:
Restart your machine - now http://localhost will start working | |||
|
feedback
|
|
Right click Web Site (Default Web Site in our case) and click on Properties Now, when you try to access the Web site using http://localhost or http://machine_name it will give 404. HTH | |||
|
feedback
|
This type of question is better addressed on serverfault.comIt's unclear from the question if you need help with setting up IIS to respond at a particular IP, or if you need help in figuring out how to assign one of your public IPs to the server itself. For the former, look into IIS Management Console, under "Properties" for a given site, the "Web Site" tab of this control provides a way to add/remove IPs ("Web Site Identification"). For the latter, the conection Manager will do. At any rate, contributors to ServerFault.com will have all these details for you... – mjv Feb 5 '10 at 14:04