This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes Can i get the client IP adress in my servlet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Can i get the client IP adress in my servlet?" Watch "Can i get the client IP adress in my servlet?" New topic
Author

Can i get the client IP adress in my servlet?

Frank Jacobsen
Ranch Hand

Joined: May 17, 2002
Posts: 349
I have a servlet that runs in websphere, can i in any way, get the ip adress from the client, i want to log the ip adress ?



Frank

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

use

http://www.java-tips.org/java-ee-tips/java-servlet/how-to-get-the-client-address-in-a-servlet.html
Frank Jacobsen
Ranch Hand

Joined: May 17, 2002
Posts: 349
Thanks
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Frank Jacobsen wrote:Thanks


You are welcome
 
 
subject: Can i get the client IP adress in my servlet?