Hi, Hope I can drop in on this discussion with a new question relating to this (thought it would be better than to start a new discussion thread) Assuming the following:
I start server (inlcuding rmiregistry) on a machine
The client starts and connects to the server from a different machine
I let the client be able to give port number and server IP (or hostname)in order to connect to server. Is it ok to assume that the server is always started on
localhost/QUOTE]? I mean, is there any need for starting the server to use an IP or hostname?
Andrew Monkhouse
author and jackaroo
Marshal Commander
Hi Martin, The only potential issue is one of portability. As I mentioned, Sun's rmiregistry does not allow your server to be on a different computer than the registry. However a registry provided by some other supplier may allow it. All of which is a bit academic though - nearly everyone doing this assignment starts the rmiregistry from within the server application itself, so therefore the server is guaranteed to be on the same computer as the registry. Regards, Andrew