title: How to get client information at Tomcat server side application
body: <p>My tomcat server runs on YYYY machine and client runs on XXXX and whenever the request comes to YYYY, it processes the request sending the request to another machine.</p>
  
  <pre><code>My server.http looks like--&gt;
  &lt;Service name="MyService"&gt;
      &lt;Connector port="3096"
         maxThreads="50" minSpareThreads="50" maxSpareThreads="50"
         debug="0" acceptCount="100" connectionTimeout="60000"
         enableLookups="true" address="YYYY"/&gt;
      &lt;Engine name="standalone" defaultHost="localhost"&gt;
  </code></pre>
  
  <p>The servlet which processes the request has the <code>getRemoteHost()</code> as "YYYY". Can anyone please give any light how can I get the client info (host and port)?</p>
  
  <p>Thanks.</p>