IIS Second site not accessible off server

littlewing1977 1 Reputation point
2023-01-10T00:44:41.843+00:00

I am just trying to use IIS for the first time. I have set up 2 separate web sites. I set the bindings to use different ports. I can access both sites directly from the server using the IP address and port number. If I go to another computer on the same network, I can only access one of the sites. I have opened up the both ports in the firewall.
I believe the one that was working was also working from outside my network, but as I'm writing this, it appears that neither are accessible outside the server now.

Anybody have any idea what I may be missing?

Windows development | Internet Information Services
{count} votes

6 answers

Sort by: Most helpful
  1. Sam Fernandez 1 Reputation point
    2023-01-10T13:09:51.747+00:00

    Hi littlewing1977-9626,

    Can you try one thing ? Open IIS, locate web site > Bindings > edit binding of web sites and set its IP address to "All Unassigned" > stop web sites and start again and check if it help ?

    Regards, Sam https://www.storminternet.co.uk/ Managed Cloud Hosting

    0 comments No comments

  2. littlewing1977 1 Reputation point
    2023-01-15T03:24:59.3366667+00:00

    Sorry, I didn't notice that I had a response to this.

    I am using an on-prem VM running on ESXi.
    The OS is Windows Server 2012.
    I am using non-default ports.
    I have not touched the HOSTS file.
    The error says that the site timed out.
    The bindings are set to http, All Unassigned, port number. hostname is blank.
    I have created firewall entries to allow traffic on the ports for each site.
    Both sites open on the web server where they were hosted, using the IP and port number.

    At one point, one of the sites was working, but it has stopped now. I never got the 2nd site to work.

    I was originally going to use separate IP addresses, but I have a dynamic public IP address. So I chose to use the same IP with different port numbers for the bindings. That way, I can point my domain name to my dynamic DNS domain. Maybe there is a better way to do this to.


  3. littlewing1977 1 Reputation point
    2023-01-15T03:30:28.42+00:00

    It might also be worth mentioning, that the web server is joined to a local AD domain. It is also pointed to a local DNS server and uses a public DNS for the secondary.

    0 comments No comments

  4. littlewing1977 1 Reputation point
    2023-01-15T03:37:40.3233333+00:00

    I just had a duh moment. I know I created the firewall rules, but I didn't turn the firewall off to see if the web site would work then. I just tried that, and both sites work. So there is something wrong with my firewall rules. I'm not sure what is wrong with them though. I have opened up incoming TCP traffic on both of the ports that are used for the sites. I'm not sure what else I would need. Any suggestions?

    0 comments No comments

  5. littlewing1977 1 Reputation point
    2023-01-15T14:29:03.8033333+00:00

    Sorry, for all of the responses. I've been playing with this a lot.

    One of the sites just magically started working. I got the other site to work by changing the firewall rule, so the local port is the port of the web site and the remote port is Any. I'm not sure that is the best for security though.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.