title: how to get the mac Address , user , through an end-point request
body: <p>I have a controller that when accessing it I need to get the ip, user, macAdress information that are accessing this new end-point. I have the code below and I would like to get this other information I need. Can you help me?</p>
  <pre><code>@RequestMapping(value = &quot;/account&quot;, method = RequestMethod.GET)
  public String getIp(HttpServletRequest request) {
      
      String ipAddress = request.getHeader(&quot;X-FORWARDED-FOR&quot;);
      if (ipAddress == null) {
          ipAddress = request.getRemoteAddr();
      }
  
      return &quot;page&quot;;
  }
  </code></pre>