Hi,
>检查了下发现和我自己的电脑之间无法Ping通,
ping不通的原因可能是因为Azure的虚拟机并不支持ICMP协议,详细请阅读这篇博客:http://www.cnblogs.com/threestone/p/4980560.html。下面是一些摘要:
我们无法通过ping命令,检测Azure VM的VIP,因为Azure负载均衡器(SLB)是禁用ICMP协议的。
>云虚拟机上可以通过Localhost访问,但是在我自己电脑上无法通过云虚拟机的IP来访问这个项目
据我的经验来看本地可以访问外部却不能访问的原因可能是因为没有添加相应的终结点或者在防火墙中没有添加相应的规则,我建议您阅读这篇文章:https://www.azure.cn/documentation/articles/virtual-machines-windows-classic-java-run-tomcat-app-server/。特别是文章中提到的“为虚拟机创建终结点”和“在防火墙上为虚拟机开发一个端口”。
Best Regards,
Jambor
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to
MSDN Support, feel free to contact MSDNFSF@microsoft.com.