title: Difference between getLocalPort() and getServerPort() in servlets
body: <p>I am studying servlets, I have come up with a doubt difference between <code>getLocalPort()</code> and <code>getServerPort()</code>.
  Here the <code>getLocalPort()</code> means server side only then whats the meaning of <code>getServerPort()</code>?</p>
  
  <p>Thanks.</p>