5 Replies Latest reply on May 23, 2002 9:07 AM by ionel

    caller IP

      Hi,

      is it possible for a bean to know the IP of a client who calls one of its methods ?

      thanks,
      ionel

        • 1. Re: caller IP
          fbiaggi

          Ciao,

          try
          RemoteServer.getClientHost();

          • 2. Re: caller IP

            I misspell, sorry

            I mean from an EnterpriseJavaBean running in a container to know who is calling it.

            ionel

            • 3. Re: caller IP
              jguru

              It would depend on the protocol that you are using to connect. Lets say if you are accessing via HTTP then you could intercept HttpRequest's request.getRemoteAddr() to get the IP.

              • 4. Re: caller IP
                jguru

                Ohhhh! I don't think it's possible for bean to intercept IP of client m/c that invoked it because client access is intercepted by the container. You may need to refer to your vendor documentation, for whether it provides such method....... Anyways, if you really get the answer to it.. do respond.

                • 5. Re: caller IP

                  i will