protected void Application_BeginRequest(object sender, EventArgs e) { HttpRequest request = base.Request; string address = request.UserHostAddress; base.Response.Write(address); }
HttpRequest.ServerVariables["REMOTE_ADDR"]
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)