E
EJP
In the sample I implemented server socket factory so I'll be able to
bind it to the localhost and a client factory because it didn't work
without it.
It should work perfectly without a CSF. What problem did you get? Remove
it, specify null, and restore your RMIServerSocketFactory.equals()
method to what you had before. And tell us the problem.
The problem is still that it seems that the client is trying to bind
to the DNS address instead of the loopback interface and provides the
following exception:
No, the client isn't trying to 'bind' to anything. It's trying to
*connect* to the DNS address. You now need to set
-Djava.rmi.server.hostname=127.0.0.1 in the server JVM, either via this
command line or via System.setProperty.