Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

migrated from Feb 5 '10 at 14:14

This question came from our site for professional and enthusiast programmers.

Are you wanting to access the site under your internal network IP such as, your external IP address, or just the localhost equivalent ( – Steve Danner Feb 5 '10 at 13:55
This type of question is better addressed on It'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 will have all these details for you... – mjv Feb 5 '10 at 14:04
very basic question dudes: @Srikanth, try what I posted bellow. It is development related issue; which I solved after googling.. – effkay Feb 5 '10 at 14:05

Substitute your local IP for localhost should do it.

share|improve this answer

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;


Find following line:

::1             localhost

comment it by adding # at line start

#::1             localhost

and add following: localhost

Restart your machine - now http://localhost will start working

share|improve this answer

Right click Web Site (Default Web Site in our case) and click on Properties
Click Advanced… button in the Web Site tab
Click on Default and click Edit…
Under IP address: click on the drop down list and select the machine ip

Now, when you try to access the Web site using http://localhost or http://machine_name it will give 404.
You will need to access the web site using http://ip_address and that would work.


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.