[quoted text, click to view] On Tue, 17 May 2005 11:59:44 -0700, John Chan via .NET 247 wrote:
> I'm working on a project which involves clients calling into server and server calling back to the clients. I use .Net Remoting to do that (setting TypeFilterLevel to Full and creating the client and server sink providers on both sides). It works great and fine within my intranet.
>
> However, problem occurs when I start running the same thing over the internet so that the server and clients are on different domains. Now the client can invoke methods on the server but the server cannot call back to the clients. It just timed out.
The standard .NET Remoting channels are not bidirectionals, which means
that whenever the server needs to callback into the client, it needs to
open a new channel to the client application. The client application
therefore becomes the server and the server application becomes the client.
If your client application is behind a firewall, the server application
won't be able to open this new channel since the client's firewall will
deny the connection.
There are 2 possible solutions to your problem:
- Specify a port when creating the channel in the client application and
open this port in the client application computer's firewall. Not the best
solution since this opens a potential security hole and some users may not
know how to open ports in their firewall. And you'll still have problems
with NAT routers.
- Use Genuine Channels (
http://www.genuinechannels.com). It provides
bi-directionnal channels that work like a breeze through firewall and NAT
routers. It also provides loads of other usefull features. Once you'll have