ArigatoManga
ArigatoManga

Reputation: 702

Can RMI be hosted on ports above 32000?

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.

Upvotes: 0

Views: 82

Answers (1)

user207421
user207421

Reputation: 311054

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.

Upvotes: 2

Related Questions