Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Remoting / May 2005

Tip: Looking for answers? Try searching our database.

Bi-Directional Remoting Problem in the Internet

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Chan - 17 May 2005 19:59 GMT
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.

I've been searching through the net and trying different settings but still don't have a clue on how to get it to work. Any helps are appreciated. Sorry for the bad English since I'm not a native speaker.
Mehdi - 18 May 2005 14:28 GMT
> 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
tried it, you'll wonder how you've been able to live without it before.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.