Jimmy Clark wrote:
When you manually start the RMI server (registry) you select the port that you want it to use.
Your concept of "trying" ports until one is free does not apply to the activity of manually starting the RMI server (registry.)
Ok, I guess I'll just have to try it. If necessary I can allways check if a port is free by doing something like the following.
The only problem with this could be something takes the port between me checking if it's free and actually using it with the registry, but the chance on that is small enough.
Maybe you're wondering how I will be able to use this registry if I don't know beforehand what port I'll use...I will probably be sending out udp packets to tell clients what port to use.
Thank you for thinking with me here and sorry for using your time.