File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 353
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: 353
Thanks
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Frank Jacobsen wrote:Thanks


You are welcome
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Can i get the client IP adress in my servlet?