I'm having a little trouble with Java RMI.
Am I able to check if a registry exists? This line of code is supposed to give me the registry.
LocateRegistry.getRegistry(ip, Registry.REGISTRY_PORT);
But when I call it with a wrong IP address or an IP address where no registry can be found, the method gets stuck.
So my question is, can i somehow check if there is a registry at a certain IP address BEFORE calling getRegistry()?