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

依然范特西╮ 提交于 2019-12-24 14:01:13

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/4623053/get-the-client-ip-address-in-rmi-server-when-cleint-makes-a-call-registry-lookup

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!