remoting error between computers but not on same computer

R

Ringo

I have a remoting client project and a server project.
Everything works fine as long as both are on teh same computer, but
when I try t over my network I get the following error:

System.Security.Authentication.AuthenticationException was unhandled
Message="A remote side security requirement was not fulfilled during
authentication. Try increasing the ProtectionLevel and/or
ImpersonationLevel."

The connection is set up on the client side like this:

TcpChannel ch = new TcpChannel();
ChannelServices.RegisterChannel(ch, true);
remotingObject = (SerializerInterface)Activator.GetObject(
typeof(SerializerInterface),
IP_textbox.Text);
where the text in the texbox is "tcp://localhost:8085/
RobotServerApplication"

and the server side is set up like this


channel = new TcpChannel(port);
ChannelServices.RegisterChannel(channel, true);
RemotingConfiguration.RegisterWellKnownServiceType(
typeof(RemotingObject),
"RobotServerApplication",
WellKnownObjectMode.Singleton);




I have turned off firewalls on both machines and opened the port on
the router.
I change the client to point to tcp://198.162.1.101:8085/RobotServerApplication
(server address) and as soon as I send a command I get the error.

Everything I have googled about this tells me to change the
impersonation level, but I have no clue on how to do this. Does anyone
have any ideas? I also tried changing the "simple file sharing" that
comes up in the google answers alot and it did not help.

Thanks
Ringo
 
R

Ringo

Is there a reason you're using Remoting instead of WCF?














- Show quoted text -

I started with an example that does 75% of what I want, so instead of
starting from scratch I started with the example.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top