Range Range - 1 year ago 91
Java Question

Determining ip of java rmi remote object host machine using rmi registry

Is there a way to determine the ip of the machine on which a remote object is hosted?Is there a way to get this information from the rmi registry?

Answer Source

You can access a rmiregistry only by using the IP it resides. And you can only call methods that are registered with the Remote interface. So writing a function in the interface to return an IP is of no use, I think.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download