title: Tracking client system ip address
body: <p>We are launching an ERP application on cloud and hence planning to capture the system ip address of the clients machine who access the application from our server. 
  This ip address that we are fetching is it the system ip or localhost ip? 
  It is fetched using </p>
  
  <pre><code>InetAddress local_ip=InetAddress.getLocalHost();
  InetAddress remote_ip=InetAddress.getByName(request.getRemoteAddr());
  </code></pre>
  
  <p>Is it secure to fetch the ip address or mac address? As i know the ip address is unique only across a network.</p>
  
  <p>Thank You</p>