客户端未发现WCF发现UDP端点 [英] WCF Discovery UDPEndpoint not discovered by client

查看:57
本文介绍了客户端未发现WCF发现UDP端点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经实现了简单的客户端/服务器WCF发现服务自托管应用程序.该应用程序可以在我的家用PC上运行,但在办公室笔记本电脑中,它只能将我的家用PC用作服务器.反之亦然,这意味着我在办公计算机和客户端中运行主机 在个人电脑中.但是,如果我使用http协议在浏览器中浏览url,则会收到该服务的响应.我尝试使用PSTools从同一个UDP端口获得响应.仅客户端未发现UDP端点.两台计算机上的防火墙均已关闭.

I have implemented simple Client/Server WCF discovery service self hosted application. That application is working in my Home PC but in office laptop it only listen my home pc as server. it wont work vice versa, means i run host in office machine and client in personal pc. But If i browse the url in browser using http protocol i got response from the service. I tried with PSTools i got response from the same UDP port. Only the client is not discovering the UDP endpoint. Firewall is turned off in both the machines.

是否有解决问题的建议或建议?

Any suggestion or Inputs to resolve the issue?

谢谢

Subbiah k

Subbiah k

推荐答案

您好,Subbiah,

>>该应用程序可以在我的家用PC上运行,但是在办公室笔记本电脑中,它只能将我的家用PC用作服务器

您的发现服务是否意味着可以在个人PC上使用,但是如果您从办公计算机上调用此服务,办公计算机将无法发现此UDP端点?

我建议您检查是否已在服务端为UDP设置 UDP入站规则.您可以使用高级安全性->入站规则->新规则->端口-> UDP->所有本地端口->打开连接->域,私有,公共->名称打开Windows防火墙 遵守这个规则.

I suggest you check whether you have set Inbound Rules for UDP in Service side. You could open Windows Firewall with Advanced Security->Inbound Rules->New Rule->Port->UDP->All local ports->Allow the connection->Domain,Private,Public->Name for this rule.

以另一种方式检查此问题是否是由防火墙引起的,建议您尝试在服务端禁用防火墙.您可以参考下面的链接以获取更多信息.

In another way to check whether this issue is caused by firewall, I suggest you try to disable firewall in Service side. You could refer the link below for more information.

#WCF发现根本不起作用

#WCF Discovery simply doesn't work

http://stackoverflow.com/questions/6778166/wcf-discovery -simply-doesnt-work?rq = 1

最好的问候

托尼


这篇关于客户端未发现WCF发现UDP端点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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