views:

228

answers:

0

running a simple example with

a minimal server that * has both rmiregistry functionality and a fixed listen port, both correctly in listen * which has a "blocking" (long-sleeping) method - this has been done to actually see what kind of connection is opening with netstat

a minimal client * (client only, no callbacks) that connects (and therefore blocks) on the method

well, we are seeing TWO established connections, one expected (coming from the client random port to the server fixed listening port) and

SURPRISE one coming out from the fixed server port to the client random port.

the same netstat shows the expected results on other connection types (e.g. a ssh session shows exactly one established connection, from the client ssh to the server sshd)

I was expecting only the client - to - server tcp connection for the rmi call, too; was I wrong?

:scratcheshisownheadperplexed:

thanks in advance