title: How to determine remote IP address from JAX-RS resource?
body: <p>I have the following JAX-RS resource running in Grizzly HTTP server:</p>
  
  <pre><code>@Path("/board")
  public class BoardResource {
  
      @POST
      @Consumes("application/x-www-form-urlencoded")
      public void login(@FormParam("email") String email, @FormParam("password") String password,
              @HeaderParam("user-agent") String userAgent) {
          // how to determine remote IP address here?
      }
  }
  </code></pre>
  
  <p>How can I determine remote IP address inside login() handler?</p>
  
  <p>Thanks,
  Michael</p>