Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 purchased a GoDaddy Windows 2003 server, the problem is I can't access my site via localhost but it can be accessed via a URL. Can anybody tell me what should I look for?

share|improve this question
up vote 3 down vote accepted

I imagine this is because your site in IIS is set to use host headers, usually the default site in IIS is set to listen on all IP's, so that it will respond to a localhost request. To get your site to respond to local host you will need to get it to listen on IP, and remove this from the default site.

share|improve this answer

I assume you have administrative control over server and you can interactively login to server and make changes.

Do this, say if you wanted to access your site as http://mysite

Find your server's IP address

Start > run > CMD.exe then in resulting command prompt type ipconfig /all

Make entry in HOSTS file Open c:\windows\system32\drivers\etc\hosts file and make entry x.x.x.x mysite where x.x.x.x is IP address you found from previous step

You are done, now access your site locally from server using http://mysite URL

share|improve this answer

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.