title: Get client's browser name and ip address using Spring
body: <p>I'm trying to get a list of all online users. I'm planning to do so, using SpringRegistry. But i also have to get user's browser info and ip address. I know that i could do it in javascript, but i need to retrieve all user's details, not only current one's. </p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Here's my code:</p>
  
  <pre><code> @GetMapping("/")
   public String index(HttpServletRequest request){
   String ip=request.getRemoteAddr(); // "0:0:0:0:0:0:0:1"
   return "index";
  }
  </code></pre>