Secure TCP with .net 2.0

Hello
I am running a .net remoting application and want to secure the tcp traffic between server and clients.
Users connecting to the server should be authenticated and the traffic between server and clients should be encrypted.
To make my problem a little bit more understandable I will post my current approaches.
Servercode:
IDictionary properties = new Hashtable();
properties.Add("port", 8535);
properties.Add("secure", true);
properties.Add("authenticationMode", "IdentifyCallers");
TcpServerChannel channel = new TcpServerChannel(properties, null);
ChannelServices.RegisterChannel(channel);
RemotingConfiguration.RegisterWellKnownServiceType(typeof(ImportServer),
"ImportServer", WellKnownObjectMode.Singleton);
Clientcode:
properties.Add("secure", true);
properties.Add("connectionTimeout", 5000);
properties.Add("impersonationLevel", "Identify");
properties.Add("useDefaultCredentials", false);
properties.Add("username", "remoting");
properties.Add("password", "xxx");
ChannelServices.RegisterChannel(new TcpClientChannel(properties,null));
con = (ImportInterface)Activator.GetObject(typeof(ImportInterface),
this.connectionStr);
The "remoting" user was created on the server machine. This approach is based on several msdn- and "google"articles, it would be great if anyone could give me some advice about this issue.
Stefan
[1461 byte] By [StefanFenz] at [2008-2-22]
# 1
What is the problem that you are seeing?
douglasp at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Remoting and Runtime Serialization...
# 2
The problem is that, the server isn't accepting any connections from clients configured in the showed way... Is there anything else to do, to get a working and secure connection?
StefanFenz at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Remoting and Runtime Serialization...
# 3
Have a look at the following article, it goes through Remoting ans Secure TCP Communication

http://www.codeguru.com/Csharp/Csharp/cs_syntax/remoting/article.php/c10253

Mykre
www.ircomm.net
Managed DirectX and Game Programming Resources.

Mykre at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Remoting and Runtime Serialization...
# 4
I read this article before and abstained from some errors this article is using the IPC channel on the client side.
I thought the IPC channel is designed for interprocess communication on the same machine, I need a communication flow across machine boundaries. So I correct the errors in the posted article and used the TCP channel instead of the IPC channel, and it didn't worked in that way.
It would be great if anybody have already implemented a working and secure .net remoting application across different machines and could give me some advice.
Stefan
StefanFenz at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Remoting and Runtime Serialization...
# 5
Have you looked @ the Remoting samples?
douglasp at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Remoting and Runtime Serialization...

.NET Development

Site Classified