Ayush Jain
Ayush Jain

Reputation: 1

Deploying Azure VM to port 8081 not working

I have created a classic VM on Microsoft Azure. I have deployed a .Net Web Application using IIS web server. I have added the ports 80, 8080, 8081 under HTTP/TCP endpoint and 443 and 44300 under HTTPS/TCP endpoint. Snapshot of end points

If I bind my application on ports 80, 8080 or 443, I am able to access it from outside the VM, that is my personal computer. However, the ports 8081 and 44300 are not accessible from outside.

For these ports I am able to access the website using http:// localhost:8080 and https:// localhost:44300. If I try http:// {domain_name}:8080 and https:// {domain_name}:44300, the browser is unable to connect to the server.

All the endpoints have been added in the same way.

Is it because of a firewall issue? Am I missing something here?

Upvotes: 0

Views: 1455

Answers (1)

Greg Levenhagen
Greg Levenhagen

Reputation: 924

You most likely need to add entries for the non-standard ports in the Windows Firewall with Advanced Security.

Excerpt from https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-set-up-endpoints/

NOTE: : Firewall configuration for Azure virtual machines is done automatically for ports associated with Remote Desktop and Secure Shell (SSH), and in most cases for Windows PowerShell Remoting. For ports specified for all other endpoints, no configuration is done automatically to the firewall of the virtual machine. When you create an endpoint for the virtual machine, you'll need to ensure that the firewall of the virtual machine also allows the traffic for the protocol and private port corresponding to the endpoint configuration.

Upvotes: 1

Related Questions