Open additional ports on Azure Web App

你离开我真会死。 提交于 2020-03-13 13:39:06

问题


I have recently moved a .NET Web API 2 app from an Azure Cloud Service to an Azure Web App. However, we have a legacy application that needs to communicate with the API on ports 8080 and 444.

Is there a way of opening additional ports on a web app?


回答1:


No, you cannot. Only ports 80 and 443 are open.

Check this answer on Server Fault: https://serverfault.com/a/751548/394375.

If you need that control, you can use Cloud Services or Virtual Machines.




回答2:


No, As junnas mentioned that only 80 or 443 Tcp ports are already-explosed.We also can get more detail info about WebApp sandbox from the document.

All Azure Web Apps (as well as Mobile App/Services, WebJobs and Functions) run in a secure environment called a sandbox.The only way an application can be accessed via the internet is through the already-exposed HTTP (80) and HTTPS (443) TCP ports. However, applications may create a socket which can listen for connections from within the sandbox.




回答3:


As described here: https://docs.microsoft.com/en-us/azure/load-balancer/tutorial-load-balancer-port-forwarding-portal you can achieve port forwarding with azure load balancer.




回答4:


While Azure Web App cannot expose ports 8080 and 444, you could use Application Gateway to export those ports and route incoming traffic on 8080 and 444 to ports 80 or 443 on a Web App.



来源:https://stackoverflow.com/questions/43516071/open-additional-ports-on-azure-web-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!