Home All Groups Group Topic Archive Search About

Server calls client behind firewall/NAT

Author
15 May 2006 2:02 AM
adebiasio@sympatico.ca
I have an application where the server needs to call the client.

I have a framework working with .net remoting where the client and
server are on the same network and the server can call the client.  But
what happens when the client is behind a firewall/NAT.

For example, with Messenger, its server contacts you, the client, when
one of your buddies logs on or off.  How does the Messenger server
contact the client?

My app currently uses remoting, but I would switch to sockets if it is
applicable.

Any ideas?
Thanks!

Author
15 May 2006 3:55 AM
iwdu15
im just trying to clarify, what is ur app doing? is it a chap app like AIM or
MSN, or what does it do?
--
-iwdu15
Author
15 May 2006 12:39 PM
adebiasio@sympatico.ca
Yes, one aspect of the app is a chat. I also using remoting in the
client to connect to a management server where certain policies and/or
options can be set.  The management server can also contact the client
of policy changes.  But if the client is behind a firewall/nat, how can
the server connect to the client?

Thanks for you input.
Author
16 May 2006 11:37 PM
iwdu15
i would try using TCP sockets in the Net.Sockets namespace. Ive used these
with great success. if your program controls all changes to both computers,
its very easy to handle. let me know if u need sample code
--
-iwdu15
Author
17 May 2006 3:02 PM
adebiasio@sympatico.ca
Great.  Sample code would be much appreciated.

Thanks!
Author
18 May 2006 12:38 AM
iwdu15
Just letting you know, i sent u an email with the code file attached. long
subject and it has the dotnet forums and TCP Sockets in the subject....hope
it helps, if you need more help, feel free to email me on the same address
--
-iwdu15