This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes identifying rmi client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Distributed Java
Bookmark "identifying rmi client" Watch "identifying rmi client" New topic

identifying rmi client

Walid Mohamed

Joined: Jul 11, 2010
Posts: 10

Hi all
I am using getClientHost() in java.rmi.server.RemoteServer to identify different rmi clients
but it only returns the IP address
I might have in my application 2 clients with same ip

any idea how to distingish clients???


Pierre Sugar
Ranch Hand

Joined: Dec 08, 2002
Posts: 62

There are several discussions on this topic e.g. at the sun-forum or at JGuru or at Velocity Review's forum. More or less the solution is to pass a unique identifier passed to the server when requesting the service.

I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: identifying rmi client
It's not a secret anymore!