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. BR, Jukka Zitting
