title: ASP.NET Session_End Event and Getting User IP Address
body: <p>In my ASP.NET web application I have my Session_End event in Global.asax. What I would like is to be able to get the IP address of the user. What I have tried is </p>
  
  <pre><code>void Session_End(object sender, EventArgs e)
  {
      string ip1 = HttpContext.Current.Request.UserHostAddress;
      string ip2 = Request.UserHostAddress;
  }
  </code></pre>
  
  <p>But Request is null in both cases. How can I get the user's IP address?</p>