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 need to work with the localhost from inside the server in order to run things as schedules.

On my workstation with the regular IIS I have 1 webserver with a lot of sites as aliases. In my server I have a website: (example) I thought this would work but it didn't: http://localhost/

How can I make it work?

share|improve this question
up vote 1 down vote accepted

Just go to the actual site in the web browser. You don't need to use the HOSTS file or aliases since you're on the actual server.

Seriously though, you should never web browse from a server.

share|improve this answer
i'm not... i'm going to have the server use nncron – Y.G.J May 30 '10 at 14:59

Check your IIS bindings to make sure the website you want is listening on localhost. To do this, right click on the site, go to Properties. In the first tab is a box that says "IP Address". If this is the only site on this server, select "(All Unassigned)". Click OK. Now open a browser on the server, and go to http://localhost and you should see your site.

share|improve this answer
it is not the only website... and they are all have assigned ip (most of them to the same ip) so what can i do? – Y.G.J May 30 '10 at 14:42
In the servers hosts file (c:\windows\system32\drivers\etc\hosts) find the line that says: localhost Change it to: localhost Now see if you can access the site from the server. If not, check the bindings again, and add a new binding for the site that has the IP address, and for the host header – Jon Angliss May 31 '10 at 1:35

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.