wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes Extracting  Client's IP 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 » Products » JBoss/WildFly
Bookmark "Extracting  Client Watch "Extracting  Client New topic
Author

Extracting Client's IP

Sharon Adar
Greenhorn

Joined: Apr 29, 2007
Posts: 18
Hi,
I'm running a jboss-4.2.0 server, and a java client uses one of my stateless.
How can I, in the stateless, get the current using client IP?
Thank you!
Sivaraman Lakshmanan
Ranch Hand

Joined: Aug 02, 2003
Posts: 231
Hi,
Try request.getRemoteAddr();

This should give you the client IP address

Hope this helps


Regards,
Sivaraman.L
avihai marchiano
Ranch Hand

Joined: Jan 10, 2007
Posts: 342
How can you get reuest in stateless?
She talked about stateless facade.

Thank you
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Extracting Client's IP