I am trying to calling ip address into label, i follow your code below is link
but ip address in label is not proper getting display as ::1
private void StoreVisitorIPDetails()
{
string ipAddress;
// Gets Client IP Address
ipAddress = Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
if (ipAddress == "" || ipAddress == null)
ipAddress = Request.ServerVariables["REMOTE_ADDR"];
lblIP.Text = ipAddress;
}
please guide