[Mono-list] Re: Remoting: SocketException on Windows client when
server runs on Linux (certain machines)
Robert Jordan
robertj at gmx.net
Sat May 28 18:37:11 EDT 2005
Hi,
> There's basically a client/server situation with the client being a
> Windows application calling a server via TcpChannel on Linux/mono. The
> remoted singleton object has a method that returns a class that acts
> like a CAO. This works very well with my SuSE 9.1 based test
> environment. For some reason, it does not work with the server running
> on a freshly installed SuSE Linux Enterprise Server 9 (additionally
> installed pkg-config and mono-complete RPMs there). My Windows client
> gets the proxy instances of the remote objects, but the first call to
> the actual worker object fails - with a SocketException, telling me the
> destination host is unreachable!? Huh!
The problem occur when client and server don't agree upon
a common host name, for example when the server has a
hostname w/out a valid DNS entry.
Try to find out the URI by calling RemotingServices.GetObjectUri()
on the returned object. Does it return something that your client
is able to connect to? If not, your server is probably missconfigured.
You may also try to apply some remoting config settings
in the app.config of your server, especially "bindTo" and
"machineName". See
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/remotingconfig.asp
Rob
More information about the Mono-list
mailing list