But in the book (Head First...) They explain subtle differece between getServerPort() and getLocalPort() (both from ServletRequest Interface).
For the first method (getServerPort()) - "to which port was request originally SENT?". As per the Head First ..."
"But there's differnce because although requests are sent to single port(Where the server is listning), the server turns aound and finds a different port for each thread so that the app can handle multiple clients at the same time".
In above quote if request was sent to one perticluar port than how server will able to listen that perticular request if it tries to find differnt port??