【发布时间】:2016-07-23 03:56:21
【问题描述】:
我有 .NET 中的标准 OWIN 示例控制台应用程序 一个启动类,监听 80 端口。
在标准 Windows Azure v2 VM 上运行此应用 (资源经理)
我为端口 80 添加了一个端点并打开了防火墙 端口 80。
我可以使用本地 ip 或 localhost:80 在 VM 上运行此示例。
我无法从虚拟机外部调用地址
我可以从 Azure 外部 ping VM 上的端口 80。
问题:我无法调用地址(公共 ip / 或分配的 cloudapp 地址) 在 Azure 之外。我错过了什么?
谢谢
var url = "http://+:80";
using (WebApp.Start<Startup>(url))
{
Console.WriteLine("Running on {0}", url);
Console.WriteLine("Press enter to exit");
Console.ReadLine();
}
【问题讨论】:
-
"我可以从 Azure 外部 ping VM 上的端口 80" - 不,你不能。 Azure 不支持来自外部流量的 ICMP。