You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Fabien Guillaume <fa...@hotmail.com> on 2003/08/18 16:22:10 UTC

Get Client Port

Hello,
 
I am trying to collect information about the computer which called my web
service.
To know the IP address, I use
 
remote_ip_address =
((javax.servlet.http.HttpServletRequest)mc.getProperty(org.apache.axis.trans
port.http.HTTPConstants.MC_HTTP_SERVLETREQUEST)).getRemoteAddr();
 
This works, but I also would like to know the port number where the call is
coming from. Is it possible? 
I am guessing that the couple IP_address/Port is unique, so that I can
better read the log file I am populating. But does a better identification
method exist (so that I can distinguish WS calls between them)?
 
Thanks in advance,
 
Fabien