title: Host IP Address 0:0:0:0:0:0:0:1 on Servlet
body: <p>I am trying to get the user Host, IP, and Port using:</p>
  
  <pre><code>request.getRemoteHost()
  request.getRemoteAddr()
  request.getRemotePort()
  </code></pre>
  
  <p>But I am getting:</p>
  
  <p><strong>Host:</strong> 0:0:0:0:0:0:0:1<br>
  <strong>IP:</strong> Address null<br>
  <strong>Port:</strong> 51111</p>
  
  <p>How do I get the correct IP address, noting that our network IP start with 10.100.x.x</p>
  
  <p>Many thanks.</p>