On Fri, 7 Sep 2001, Joe Pearse wrote:
> Date: Fri, 07 Sep 2001 15:53:33 -0700
> From: Joe Pearse <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Specify outbound port on tomcat
>
> Hi List-
> I'd like to specify what outbound ports are chosen when running my
> application. Currently, I can specify the inbound port for SSL (443) to
> receive a message. When my application responds, it (seemingly)arbitrarily
> picks a port between 1024 and (about) 5000 to send out the reply.
> My client refuses to open up their firewall between 1024 and 5000, even
> though it is for the outbound traffic only, I must specify (restrict) the
> ports used for outbound traffic. Is anyone aware if this is something that
> I could configure in Tomcat (or Apache), and if so, what is it? (If that is
> not possible to configure, please let me know also.) Thanks for the help.
>
Tomcat (or Apache, or any other TCP based server) sends responses back on
the same port that it received your request on (in fact, on the exact same
connection). Is your application itself generating outbound TCP
connections (for example, to connect to a database)? Or is the arbitrary
port possibly the one created by your *browser* running on the same
machine and connecting to Tomcat?
Craig McClanahan