I see in Play! 2.0 there is Http.Context.current()
http://www.playframework.org/documentation/api/2.0/java/play/mvc/Http.Context.html#current()
But in Play! 1.2.4 how would I go about getting the current HTTP request’s IP Address?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are within the controller, you can do
Otherwise, you would need to do