 <p>You only have to change the client.</p> <p>Change its Naming.lookup() string, from "localhost" to the server's hostname or IP address. The server's Naming string in the bind() or rebind() call does not change from "localhost", because the server and its Registry are always on the same host.</p> <p>If you are using Registry instead of Naming, again you only have to change the client's LocateRegistry.getRegistry() call.</p>