Java Programmer
Java Programmer

Reputation: 21

Get the client Ip address in RMI Server when cleint makes a call registry.lookup("RMI Server")

I want to get the ip address of each client in the server side for which the server return a stub. Is it possible?

Upvotes: 2

Views: 2817

Answers (1)

user207421
user207421

Reputation: 311039

See RemoteServer.getClientHost(). You can invoke that inside your remote method implementations. You can't get it when they do the Registry lookup however.

Upvotes: 3

Related Questions