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 a site running on IIS with a domain that points to the IP of the Windows 2008 machine hosting it. I need a copy of that site for development purposes. I set up another folder with all the files, and create a new site in IIS. I don't really have a domain for it, so I was just going to use the IP address. When I go to localhost,, or the internal IP, I get bad hostname. If I use the IP address on port 80 (the same as the real version of the site), I get 404 not found. If I use a different port so I don't have them both on the same IP with the same port, I get connection timed out. How do I go about setting this up?

share|improve this question
up vote 0 down vote accepted

You are getting "400 - Bad request" when using localhost, Internal IP, because you have configured the site on some other IP Address. You cannot have two Web sites running on same port (port 80 in your case), unless you use host headers. If you are planning to access the Web site on a different port make sure you have the necessary port open.

share|improve this answer
What are host headers, and how would I use them to get this to work? – SJaguar13 Mar 15 '10 at 5:03
check this out… – Vivek Kumbhar Mar 15 '10 at 6:33

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.