I have Tomcat and IIS 7 installed together on a Windows 2008 server. The machine has two IPs (22.214.171.124 and 126.96.36.199).
I want Tomcat to handle 188.8.131.52, on port 80, and IIS to handle both 184.108.40.206, on port 80 AND 220.127.116.11, on port 443, but can't seem to get the last two together (I can get one or the other by themselves on IIS, along with the first IP address on Tomcat).
I have configured Tomcat to successfully listen to ip 18.104.22.168, on port 80 with this configuration;
<Connector port="80" protocol="HTTP/1.1" address="22.214.171.124" connectionTimeout="20000" redirectPort="8443" />
I also have a site configured in IIS bound to ip 126.96.36.199, on port 443 (SSL). When I turn on IIS, after Tomcat, I can reach both 188.8.131.52:80 (Tomcat) and 184.108.40.206:443 (IIS) successfully (as desired).
The problem now comes when I want to introduce a new site via IIS, at the new ip address. In IIS I have setup a new site at IP 220.127.116.11, port 80. I can not start the site. The event log shows this error;
Unable to bind to the underlying transport for [::]:80. The IP Listen-Only list may contain a reference to an interface which may not exist on this machine. The data field contains the error number.
I think this is because IIS 7 tries to listen to port 80 on all IPs, and it cant because Tomcat is taking port 80 for 18.104.22.168. From reading, the resolution is to specify the IP address you want IIS to bind on port 80. The problem is, when I add 22.214.171.124 to the iplisten list, then I get a 404 when I try navigating to 126.96.36.199:443. I assume this is because IIS is no longer listening to ANY port on 188.8.131.52.
How do I resolve this such that IIS will return both sites?
EDIT: Per request my IIS binding for site A is 184.108.40.206 on port 80 (http) and 220.127.116.11 on port 443. For site B in IIS, the binding is 18.104.22.168 on port 443 (https). Note the IPs in this example are just for example purposes, but consistent with my setup.