我有尝试连接到使用REST WCF服务一2K8 R2的Windows服务器上托管,但失败了SocketException的UWP平板电脑应用:UWP应用程序将无法连接到WCF服务
“试图访问套接字由它的访问权限不允许的方式XX.XX.XX.XX:58993"
该应用程序在这一点上失败:
private String EndPoint = "xx.xx.xx.xx:58993/TabletService";
private HttpClient serviceClient = null;
serviceClient = new HttpClient() { Timeout = TimeSpan.FromSeconds(10) };
HttpResponseMessage wcfResponse = serviceClient.GetAsync(new Uri(String.Format("http://{0}/Initialize", EndPoint))).Result;
我可以成功地远程登录到该IP和端口从网络上的任何地方指定。
netstat -o显示按预期在端口上侦听的服务。
防火墙在客户端和服务器上被禁用。我在两台机器上都关闭了AV。
应用程序将从Visual Studio(IDE)连接到在同一开发计算机上安装并运行的服务。