How to get Client IP Address using Java

You may also like...

  • anonymous

    Thank you !

  • Andok

    hi all, im a new java developper. Kindly tell me how to call this getClientIpAddress with its parameter HttpServletRequest request

    • Hello Andok,

      You need to pass an instance of the HttpServletRequest, in order to get the client IP address.
      You can obtain this instance for example, from a Servlet, Web Service or Rest service, depending on your needs.