Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a site running on IIS with a dyndns.org 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, 127.0.0.1, 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

1 Answer 1

up vote 0 down vote accepted

You are getting "400 - Bad request" when using localhost, Internal IP, 127.0.0.1 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 dotnetscraps.com/dotnetscraps/post/… –  Vivek Kumbhar Mar 15 '10 at 6:33

Your Answer

 
discard

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.