托管WebApiService

时间:2019-02-08 06:49:31

标签: api web-services

.Net Web领域是我的新手。我希望能够从本地网络或办公室内的其他计算机上调用我的Web Api服务。

我可以在浏览器中调用我的Api,但其他人不能。我的另一台PC也能够ping通此IP地址。

请指导我。我找不到任何参考。谢谢

enter image description here

enter image description here

2 个答案:

答案 0 :(得分:0)

我发现防火墙正在阻止,将其关闭可以解决我的问题。

enter image description here

答案 1 :(得分:0)

您不必禁用防火墙。在大多数计算机上,您使用的端口8080 默认情况下不会处于打开状态。只需在防火墙上制定入站规则即可进行连接。如下所示:enter image description here

按下一步,然后在下一个屏幕中选中Allow the connection选项,然后重试。