I have 2 machines in LAN with internet. Hosted 2 websites on 1st server on Port 80 and Port 81. I am able to access both the websites in LAN using Private IP, but Not able to open site on port 81 using Virtual IP. I use the URL as http://VirtualIP:81/test.html
.
I get the device or resource is not setup to accept connections on port hosts2-ns error. Site on port 80 works fine though (using URL http://VirtualIP).
My Rule for URL Rewrite is:
<rule name="ipaddress for 81" stopProcessing="false">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="VIP Here:81*" />
</conditions>
<action type="Rewrite" url="http://192.168.1.3:81/{R:0}" appendQueryString="false" />
</rule>
I have created inbound rule to open port 80
and 81
on 1st server. Also disabled windows firewall. But not able to get it work.