【发布时间】:2017-12-01 09:09:48
【问题描述】:
Azure 中有一个带有 Windows Server 2016 的虚拟机。该端口在操作系统的防火墙中打开。该端口也在网络安全组中打开。我使用 telnet 检查端口 - 端口已关闭。我错过了什么吗?
【问题讨论】:
-
你可以检查使用
netstat -ant|findstr <port>。该端口应该监听0.0.0.0。如果它监听127.0.0.1。您无法在 VM 外部访问它。 -
@Shengbao Shui - MSFT,我在服务器上做了,但是命令窗口没有显示任何东西。
-
嗨,你是在 Power Shell 控制台上做的吗?如果显示有提示,则表示您的服务未成功启动或未侦听其他端口。你需要检查一下。
-
在VM中,如果你测试
telnet 127.0.0.1 <port>,结果是什么? -
@Shengbao Shui - MSFT,我在虚拟机上做了。
Connecting To localhost...Could not open connection to the host, on port <port>: Connect failed
标签: azure azure-virtual-network azure-nsg