Hi !
I have started RmiRegistry and RmiServer on computer with ip -
10.0.0.6
I want to run RMI client on another computer:
Registry registry = LocateRegistry.getRegistry("10.0.0.6");
Execute comp = (Execute) Naming.lookup("RmiServer");
RemoteAnswerMessage ram = comp.askForMessage(rqm);
I have only: java.net.connectException ConnectionRefused.
Help !
and when i'm starting rmiServer with option -
Djava.rmi.server.hostname="WiinieThePooh"
on the client side i have Connection refused to host "WiinieThePooh"
I don't understand it at all.
Client is connected to rmiServer, Data is sent (String -
"WiinieThePooh") and i have connection refused.....
Help !
Daniel Pitts - 30 Jul 2007 17:29 GMT
> Hi !
>
[quoted text clipped - 20 lines]
>
> Help !
Look up the what java.rmi.server.hostname DOES. You can't just give
it an abitrary name, it actually has to point to a real machine.
Esmond Pitt - 31 Jul 2007 06:21 GMT
Try it with -Djava.rmi.server.hostname=10.0.0.6 at the server. If this
works, and if the original ConnectException contained '127.0.0.1', check
your server's DNS or hosts file to make sure that your server host's
real IP address is mapped to its real public name, and that 'localhost'
is mapped to 127.0.0.1. Common Linux problem.