tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lacey James-CJL023 <>
Subject getServerPort
Date Thu, 30 Jan 2003 17:34:25 GMT

We have set Tomcat 4.x up to run standalone.

We then set up several connectors in the server.xml file that listen on
ports like 4080, 4081, etc.

When a requests comes in on these ports, and is serviced by a servlet, the
HttpServletRequest.getServerPort() method always returns 80 no matter what
port the request actually came in on.

Anyone know why this is, or how to get the
HttpServletRequest.getServerPort() method to return the port that the
connection actually came in on?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message