see the below code it will help you to access the or get or track the IP address of the visitor in asp.net
_ipAddress = Request.UserHostAddress.ToString();
_ipAddress = Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
if (_ipAddress == null || _ipAddress == "")
{
_ipAddress = Request.ServerVariables["REMOTE_ADDR"].ToString();
}
Tags:
asp.net