Determine IP Address

  • Thread starter Thread starter Jeff S
  • Start date Start date
J

Jeff S

How can I determine the IP address of users creating new sessions of my
ASP.NET application?
 
Hi Jeff,

You could open the global.asax.vb file and store the UserHostAddress when
the session is created.

Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
' Request.UserHostAddress gets the IP address
End Sub
 
Back
Top