If you need to access this information as part of an action:
Action { request => val address = request.remoteAddress; ... }
If you need access to another location, note that you can use implicit:
Action { implicit request => ... } myMethod(implicit request: Request) { ... }
And you can always return to the simple passage of the request.
source share