I have a service object that can be connected to via RMI. Currently I\'m doing this:
Server
Registry r = LocateRegistry.createRegistry(1
Client uses an rmi URL like rmi://localhost:2020/server
see https://stackoverflow.com/a/61210297/503025