How to get Client IP Address using Java

You may also like...

Leave a Reply

3 Comments on "How to get Client IP Address using Java"

avatar
  Subscribe  
newest oldest
Notify of
anonymous
Guest
anonymous

Thank you !

Andok
Guest
Andok

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

Memorynotfound.com
Guest
Memorynotfound.com

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.

Kr,
Memorynotfound