Home » FAQ » ASP.NET » Basic » How to get the IP address of the host accessing my site
VB.NET
Response.Write (Request.UserHostAddress.ToString ())
C#
Response.Write (Request.UserHostAddress.ToString ());
Share with