1 Reply Latest reply on Mar 27, 2006 7:30 AM by henkomannen

    Getting the client IP

    stedo

      hi,

      I have stateful session bean which is accessed from a Swing client. When the client connects and instansiates the bean I want to log the IP of the client. Does anyone know how I can get the client IP?

      Thanks
      Stephen

        • 1. Re: Getting the client IP
          henkomannen

          If you have access and control of the client you can change the interface to the EJB and submit the IP from the client.

          Use InetAddress.getLocalHost() to get the client IP address.