Hi guys,
I'm testing a RMI client/server application over the internet and I'm a bit confused about the ports (especially the second port) RMI is using...
I've got the following scenario:
The RMI server is on my root server with a public IP address without NATting. My client is behind a router at home. So far everything is working fine. The RMI registry on the server side is using the desired port i specified by creating the registry with the following command:
At the moment everything is working!!! The problem is that RMI opens up a second TCP port on the server side and this port seems to change anytime the server application is started. And these ports don't seem to be reserved ports for a special application (the last two times i had 2652 and 2317 for example). This is very unsatisfying because i have to change this second port on my firewall each time the server application is restarted
Unfortunately I couldn't find any useful hints on the web what exactly this second port does or is and in particular why it is changing dynamically! Can anyone tell me please what this port is and perhaps how I can specify a fixed number for it!
Thanks in advance!
Marco
I'm testing a RMI client/server application over the internet and I'm a bit confused about the ports (especially the second port) RMI is using...
I've got the following scenario:
The RMI server is on my root server with a public IP address without NATting. My client is behind a router at home. So far everything is working fine. The RMI registry on the server side is using the desired port i specified by creating the registry with the following command:
At the moment everything is working!!! The problem is that RMI opens up a second TCP port on the server side and this port seems to change anytime the server application is started. And these ports don't seem to be reserved ports for a special application (the last two times i had 2652 and 2317 for example). This is very unsatisfying because i have to change this second port on my firewall each time the server application is restarted
Unfortunately I couldn't find any useful hints on the web what exactly this second port does or is and in particular why it is changing dynamically! Can anyone tell me please what this port is and perhaps how I can specify a fixed number for it!
Thanks in advance!
Marco