title: get sender's IP
body: <p>I have a tomcat application running on port no 443 ,
  This application receives request from multiple application servers for password authentication .
  i e . users from multiple applications access this application(on 443) for password authentication on web browser , and are sent back after authentication</p>
  
  <p>By goal is to bind my application (running on 443 ) for specific servers .(make inaccessible from the world .)</p>
  
  <p>I have tried getting ip of the system from which i am getting the request , but had no luck .</p>
  
  <pre><code> request.getRemoteAddr();
   request.getRemoteHost();
  </code></pre>
  
  <p>returns clients IP on which the webpage is open</p>
  
  <p>I need the ip of the server from which request is sent to me </p>
  
  <p>I also tried doing </p>
  
  <pre><code>request.getServerName();
  </code></pre>
  
  <p>but i am getting the ip of my own server not the sender</p>