How to get Client IP Address using Java

You may also like...

6
Leave a Reply

avatar
4 Comment threads
2 Thread replies
2 Followers
 
Most reacted comment
Hottest comment thread
6 Comment authors
MemoryNotFoundprajwalVigneshMemorynotfound.comAndok Recent comment authors
  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

Vignesh
Guest
Vignesh

Hi,
Is anyone know how to get the MAC address from a client machine using java?

prajwal
Guest
prajwal

But I am still getting the proxy ip not the real ip please help