This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
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
Similar Threads
Tomcat HttpSession inactivity
trying to connect to another ip adress
Stateless Client, Thin Client & Fat Client
Web user state (thoughts needed!)
Stateless bean removal