You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Je...@candle.com on 2003/05/07 01:31:44 UTC

How can I get Client Remote port?

Using Tomcat 4.1.24, I've written a Filter servlet and need a way to get
the remote ports of client requests.
If I can get access to the "Socket" instance I can accomplish this.

Any suggestion are appreciated.

     Jesse Perez
     Candle Corp



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Re: How can I get Client Remote port?

Posted by Jean-Francois Arcand <jf...@apache.org>.
Unfortunaly,

you will have to uses Tomcat 5 for doing such thing. This functionality 
has been added to the Servlet 2.4 API (Request.getRemotePort). Sockets 
are internal to Tomcat and will never be available for application.

-- Jeanfrancois

Jesse_Perez@candle.com wrote:

>Using Tomcat 4.1.24, I've written a Filter servlet and need a way to get
>the remote ports of client requests.
>If I can get access to the "Socket" instance I can accomplish this.
>
>Any suggestion are appreciated.
>
>     Jesse Perez
>     Candle Corp
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org