I would like to track client sessions by connection (not session state or cookies) in ASP .NET. I was planning on doing this by using the client’s IP address and ephemeral port number.
You can get the IPAddress in ASP .NET via
HttpContext.Current.Request.UserHostAddressHttpContext.Current.Request.ServerVairables["REMOTE_ADDR"].
Neither of which give you the reply port number. Is there another way to get it? Is it even possible?
perhaps?