Jukka Zitting ha scritto:
Hi,

On Jan 28, 2008 3:57 PM, Mario Cartia <[EMAIL PROTECTED]> wrote:
Running the client from another host i obtain:
----------
Exception in thread "Main Thread" java.rmi.ConnectException: Connection
refused to host: 127.0.1.1; nested exception is:
[...]
why?

By default the RMI server binds itself just to a single IP address,
using a somewhat complex mechanism to decide which that address should
be. Apparently on your system the RMI layer thinks that it should bind
itself to the localhost address 127.0.0.1, which is only accessible to
clients on the same host.

You can override the IP address the RMI server binds itself to by
setting the java.rmi.server.hostname system property on the server
JVM. In your case something like this:
-Djava.rmi.server.hostmane=160.120.200.101.

Thank for your help. Now it works!

--
Mario Cartia


--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
Hai bisogno di un prestito? Chiedi a Prometeo qual è l’offerta sul mercato più 
adatta a te, chiedere non costa nulla e basta un click!
* Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7494&d=29-1

Reply via email to