6 Replies Latest reply on Mar 20, 2002 12:27 PM by Guy Rouillier

    getClientHost() works in EJB

    Guy Rouillier Newbie

      Copying some old RMI code I'd written, I tried

      String aHost = java.rmi.server.UnicastRemoteObject.getClientHost();

      in an EJB and it works. I tried a Unix client and a Windows client accessing an EJB on a Windows box and got the correct client IP address both times. Can I rely on this, or did I just get lucky? (i.e., hit some fluke)