File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Extracting  Client Watch "Extracting  Client New topic

Extracting Client's IP

Sharon Adar

Joined: Apr 29, 2007
Posts: 18
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
Try request.getRemoteAddr();

This should give you the client IP address

Hope this helps

avihai marchiano
Ranch Hand

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

Thank you
I agree. Here's the link:
subject: Extracting Client's IP
It's not a secret anymore!