Avatar of projectja
 asked on

Multiple sites, same external IP on same port 80 in IIS 7.5 into Virtual Machine

Hi Guys,

IIS 7.5
Windows 2008 r2.

We are trying to configure different websites by using the same public IP and same port.


We've asssigned different internal IP to the server hosting these websites.
Internally, it is possible to access to www.siteA.com and www.siteB.com (we have incluided de internal IP address in the host file).

The problem is when we try it from outside it does not work.

Not Found

HTTP Error 404. The requested resource is not found.

Any experience with this?

Thanks in advance,

Microsoft Server OSMicrosoft Legacy OSWindows Server 2008

Avatar of undefined
Last Comment

8/22/2022 - Mon
Justin Owens

How do your two web sites resolve the URL?  Are they static entries in your DNS server, or are they going out to a public Internet DNS server to resolve before coming back in?  Have you created two publicly hosted A records in DNS to point your two domains (which I assume you have already registered) back to your assigned IP by your ISP?

IIS 7.5 can look at the URL of the incoming request and properly get you to the site you need.  This is evidenced by your internal success.  Your server appears set up correctly.  What I would focus on is your public DNS entries: make sure they are properly registered and resolve to the proper IP address from a public DNS search.




Thanks for your feedback.

We have an external Public IP.
Both domains are pointing to this public IP.
Testing (ping) to www.siteA.com and www.siteB.com is OK (pointing to external IP)

We have not internal DNS. We have host file on the IIS 7.5.

I think there is something wrong. Interlally it is working OK.
Justin Owens

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

Yes, It is configured. it is possible to reach the server with telnet
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.

I apologise for the delay.

Yes, I made a mistake configuring the NAT rule on the firewall. On the other hand i was neccesary to configure bindings on IIS correctly.

Our configuration

Only one public IP
allowing traffic on port 80
Configuring NAT rule to redirect traffic to the internal IIS server on port 80.
This IIS has differents websites, all of them configured on port 80.
http redirect configured.
It is working correctly.

Thank you very much