axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fabien Guillaume" <fabien2...@hotmail.com>
Subject Get Client Port
Date Mon, 18 Aug 2003 14:22:10 GMT
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

Mime
View raw message