Multiple Site Hosting on same server with different port

Syed Safdar Taqvi 21 Reputation points
2021-01-10T14:42:41.477+00:00

I have created a server on azure then connect it through rdp remote connection and configure one of my site on IIs. It's working fine and I can open the site through public IP. Now I did same thing and create another site on the same server with different port like 81 then it doesn't work. What should I do please help.

Thanks in advance

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,015 questions
{count} votes

Accepted answer
  1. Andreas Baumgarten 123.4K Reputation points MVP Volunteer Moderator
    2021-01-10T16:20:05.197+00:00

    The "inbound TCP Port 81" communication in the OS Firewall is allowed?

    Do you have maybe another VM in the same subnet of the WebServer? This way you can test with a browser on the second VM if website will open on Port 81.


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten


1 additional answer

Sort by: Most helpful
  1. Andreas Baumgarten 123.4K Reputation points MVP Volunteer Moderator
    2021-01-10T15:16:13.117+00:00

    Are there Network Security Groups (NSGs) associated with the VM and/or the subnet?

    If so, you have to add an inbound rule "allow TCP Port 81" to the NSG.


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten


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.