简体   繁体   English

Azure 本地主机的虚拟机端口

[英]Azure VM Port for Localhost

So I'm using an Azure VM that has a public IP address, and I've opened an inbound port, let's say it's 5555. What I'm trying to do now is to run an application on the VM that has an API via localhost, also with the port 5555. I'm calling it then with public_ip:5555/api/...因此,我正在使用Azure VM,它具有公共ZA12A3079E14CED46ECED46E6E6BA52B8A90B21AZ的地址localhost,也使用端口 5555。然后我用 public_ip:5555/api/... 调用它

Since I was not able to connect to the application from outside, is there something missing here?由于我无法从外部连接到应用程序,这里有什么遗漏吗? Most tutorials and resources I've found just mentioned opening the port.我发现的大多数教程和资源都刚刚提到了打开端口。

Thanks.谢谢。

Take a look at Azure's IP Flow Verify utility, which will check your NSG rules to ensure traffic can reach your VM.查看 Azure 的 IP 流验证实用程序,它将检查您的 NSG 规则以确保流量可以到达您的 VM。 https://docs.microsoft.com/en-us/azure/network-watcher/network-watcher-ip-flow-verify-overview https://docs.microsoft.com/en-us/azure/network-watcher/network-watcher-ip-flow-verify-overview

If traffic is reaching your VM, check your host firewall and then your application server logs.如果流量到达您的 VM,请检查您的主机防火墙,然后检查您的应用程序服务器日志。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM