public string GetIpAddress() { string stringIpAddress; stringIpAddress = Request.ServerVariables["HTTP_X_FORWARDED_FOR"]; if (stringIpAddress == null) { stringIpAddress = Request.ServerVariables["REMOTE_ADDR"]; } return "Visitor IP Address is "+stringIpAddress; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)