using System; using System.Web; namespace WebApplication6 { public partial class Demo1 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { Response.Write("IP: " + HttpContext.Current.Request.UserHostAddress.ToString()); } } }