How do you find out the IP address of a Jini service?
In general, you can’t obtain the IP address of a service from the lookup service. The service proxy is never unmarshalled in the lookup service, so it’s impossible to inspect the proxy for IP addresses. Also, there is no requirement that the entity that registers the service must also be the entity that provides the service, so knowing who performed the join in the general case tells you nothing. Even after the client retrieves the service proxy, obtaining an IP address is not possible in general, because a smart proxy can be designed to completely hide the network implementation details from the client. In fact, the proxy can entirely implement the service locally, resulting in no IP address. Or, the proxy could contact several different servers at various IP addresses simultaneously or at different periods during its lifetime; this means that there could, in fact, be many IP addresses. If you are a service provider and want to provide clients with your IP address, you must explicitly