WCF wsDualHttpBinding无法在Internet上工作 [英] WCF wsDualHttpBinding not working over internet
本文介绍了WCF wsDualHttpBinding无法在Internet上工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好专家,
我使用wsDualHttpBinding开发了一个应用程序,其中WCF服务托管在IIS上,客户端是Windows应用程序.
我的应用程序在Intranet中运行正常,但我不是
有防火墙问题.
请告诉我如何在我的服务和客户端位于防火墙后面的情况下通过Intranet进行工作.
Hello Experts,
I have developed an application using wsDualHttpBinding where WCF Service is hosted on IIS and client is windows application.
My application is working fine in intranet, but I am not able to make it working over internet.
There is firewall issue.
Please tell me how can I make working it over intranet while my service as well as client are behind the firewall.
推荐答案
问题是WSDualHttpBinding使用两个连接:一个从客户端到服务的出站连接,一个从服务到客户端的入站连接.
出站连接不是问题,但是,通常将防火墙配置为阻止与任意计算机的入站连接-您可能会遇到两个问题:
1)防火墙将阻止入站连接
2)客户端可能位于非公共IP地址上
,由于这些问题,WSDualHttpBinding并不真正适用于以太网部署.您真的需要使用HTTP吗? NetTcpBinding使用单个客户端启动的连接,该连接允许双工
The problem is that the WSDualHttpBinding uses two connections: one outbound from the client to the service and one inbound to the client from the service.
In general the outbound connection is not a problem, however, normally firewalls are configured to prevent inbound connections to arbitrary machines - you are likely to have two issues:
1) the firewall will prevent the inbound connection
2) the client is likely to be on a non-pulblic IP address
Because of these issues WSDualHttpBinding is not really suitable for internet deployment. Do you really need to use HTTP? The NetTcpBinding uses a single client initiated connection that allows duplex
这篇关于WCF wsDualHttpBinding无法在Internet上工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文