I
believe he is talking about the port on the client the request is sent
from. This changes for every request - you can't track clients this
way. Instead print out the session cookie ID - that will distinguish
different clients from the same IP.
-----Original Message-----
From: Hansen, Richard [mailto:[EMAIL PROTECTED]
Sent: Monday, August 18, 2003 11:41 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Get Client PortIt can only come in on the port the web server accepts HTTP requests on.-----Original Message-----
From: Fabien Guillaume [mailto:[EMAIL PROTECTED]
Sent: Monday, August 18, 2003 9:22 AM
To: [EMAIL PROTECTED]
Subject: Get Client PortHello,I am trying to collect information about the computer which called my web service.To know the IP address, I useremote_ip_address = ((javax.servlet.http.HttpServletRequest)mc.getProperty(org.apache.axis.transport.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
