For the master assignment, the client connects to the server through rmi.
The server runs on a particular port & the client gets the registry for that port & connects to it.
So I would like to get an advise from you guys that shall I randomly generate 4-digit port numbers which the server will use to create its rmiregistry ?
Like say if I use a fixed port for the server & that port is somehow blocked on the server machine then the ppl will have a hardtime fixing it, rather I'm generating a port no. which will get generated iff that port no. is not under use.
Now I have kept the default RMI port (i.e 1099) as the default port no. it will listen to. Now if the port is already taken / blocked its exception will thrown & caught in which we will change the port no. to a free local port while notifying the user.