Hi David,
I can tell you that "java.rmi.server.hostname" and JNDI have nothing to do with Remoting. However, I might be able to help if I understand what the problem is. Can you elaborate on "The main problem is that server needs specific configuration to connect from client to that machine and call ejbs remotelly."
-Ron