如何从Azure应用程序服务中部署的Web应用程序中使用LocalHost上运行的Windows服务:在私有虚拟机中端口?
我尝试了应用程序服务中的VNET集成,以及从应用程序服务中部署的Web应用程序中连接到VM中的服务的IP地址。
假设VM的IP是XXXX,并且该服务在Localhost的端口无ABC处运行 因此,访问VM使用Localhost的服务表格:ABC
因此,如何在应用程序服务中访问此服务。
I have tried the VNet Integration in the App service and what will be the ip address for connecting to the service in the vm from the web app deployed in the app service.
suppose the ip of the vm is x.x.x.x and the service is running at port no abc of localhost
so accessing the service form the vm is using localhost:abc
So, how can i access this service in an app service.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假设将应用程序服务连接到VNET1-SUBNET1。
port X上可用的Windows服务的私有IP ABCD的VM托管在VNET2-SUBNET2上。使用tcppping“ abcd:x'之间,确保存在两个实体(APP服务和VM)之间的连接性(VNET对等/NSG/OS防火墙)。您可以使用相同的“ ABCD:X”从应用程序服务连接到Windows服务。
Assuming the app service is connected(VNet Integration) to VNet1-Subnet1.
And the VM with private IP a.b.c.d that is hosting the windows service available on port x is hosted on VNet2-Subnet2. Ensure the connectivity(VNet peering/NSG/OS firewall) exists between two entities(app service and VM) using TCPPING 'a.b.c.d:x'. You could use the same 'a.b.c.d:x' to connect to windows service from App service.