0

I am new to RMI and I have a doubt regrading hosting the RMI server on a specific port(s).

Is it necessary that Java RMI server be hosted on ports between 1024-9000 or can it be hosted on any random port (say port 50000).

What potential problem may occur if it is hosted on such random ports (50000 or 60000) ?

I have checked the RMI specification but couldn't find any information on hosting on specific ports.

Raedwald
  • 46,613
  • 43
  • 151
  • 237
ArigatoManga
  • 594
  • 5
  • 23

1 Answers1

2

Is it necessary that Java RMI server be hosted on ports between 1024-9000

No.

or can it be hosted on any random port (say port 50000).

Yes. From RMI's point of view there is no difference between any port number 1 to 65535.

What potential problem may occur if it is hosted on such random ports (50000 or 60000) ?

None.

For more detail see my answer here.

user207421
  • 305,947
  • 44
  • 307
  • 483