[英]How to access my ASP.NET Web API on Windows Azure VM from the outside world?
I have a ASP.NET web API running on an Azure Windows VM. I have a ASP.NET web API running on an Azure Windows VM. I use.rdp file remote desktop to access my VM and transfer archive/Compile code remotely on the VM.
我使用 .rdp 文件远程桌面访问我的虚拟机并在虚拟机上远程传输存档/编译代码。 I can access the ASP.NET web API default page on the remote desktop server at
我可以在远程桌面服务器上访问 ASP.NET web API 默认页面
What exactly should I do in Azure network security group to access my WebAPI from the Public Static IP of my VM?我究竟应该在 Azure 网络安全组中做什么才能从我的 VM 的公共 Static IP 访问我的 WebAPI?
You need to open port 8000 in the NSG.您需要在 NSG 中打开端口 8000。
The steps you can follow:您可以遵循的步骤:
Destination port ranges : 8000
目标端口范围:
8000
Source port ranges : *
(allows any source port) or your client public IP address源端口范围:
*
(允许任何源端口)或您的客户端公共 IP 地址
Priority value : Enter a value that is less than 65,500 and higher in priority than the default catch-all deny inbound rule.优先级值:输入一个小于 65,500 且优先级高于默认全面拒绝入站规则的值。
For example,例如,
Then you may restart your Azure VM to take this effect.然后您可以重新启动您的 Azure VM 以使其生效。 Get more details here .
在此处获取更多详细信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.