This is a hack, but you can try to configure port forwarding on the server, so the port of the registry server is displayed in such a way that all requests coming through it look like local.
This is pretty easy to do with SSH. On the server, run:
ssh localhost -N -L 1199:localhost:1099 -g
This will not execute the ( -N ) command, but will open a listening socket on port 1199 on the local computer, which will be redirected to port 1099 on localhost ( -L 1199:localhost:1099 ) and available for connections from any source ( -g ). Connections made through this tunnel will be displayed on the server on port 1099 to go from the local host. Note that you can also add -f so that SSH goes into the background after configuring the tunnel, in which case I would suggest adding "-o ExitOnForwardFailure" to improve error handling.
It should also be possible to do this using netcat, not SSH, which will be simpler and more efficient, but I don't have a suitable version of netcat. It is also possible to do this with socat if you have installed:
socat TCP-LISTEN:1199,fork TCP:localhost:1099
Now I do not know that any of these options will be sufficient. This will allow access to the network layer, but it is possible that the rmiregistry server will still refuse to register deleted objects. I doubt it.
source share