[UWP]无法连接到localhost服务 [英] [UWP] Can't connect to localhost service

查看:156
本文介绍了[UWP]无法连接到localhost服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在笔记本电脑上进行所有开发一段时间,由于某些原因 我的UWP应用程序将无法连接到我的localhost服务API  它可以很好地连接到Azure上的"实时"服务。


选中允许本地网络环回。


我可以导航到服务api  http:// localhost:52143 / api / app / test 在Chrome和IE中  (并参阅 测试方法的结果) ,但奇怪的是不在Edge中。这告诉我它无法访问此页面。


感谢任何建议。


谢谢,

Russ



 



 


解决方案


Hello,



您是否在UWP应用解决方案中检查了Package.appxmanifest中的专用网络(客户端和服务器)功能 


Hi,

I'm doing all my development on a laptop for a little while and for some reason my UWP app won't connect to my localhost service api.   It's connecting fine to the 'live' service on Azure.

Allow local Network Loopback is checked.

I can navigate to the service api http://localhost:52143/api/app/test in Chrome and IE  (and see the results of a test method) , but strangely not in Edge. which tells me it can't reach this page.

Any suggestions gratefully received.

Thanks,
Russ

 

 

解决方案

Hello,

Have you checked Private Networks (Client & Server) capability in Package.appxmanifest  in you UWP app solution 


这篇关于[UWP]无法连接到localhost服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆