Asp.net blogs

Thursday, 4 July 2013

Find IP address of web site visitor

To find IP address of web site visitor -:


            string VisitorIPAddress = Request.UserHostAddress.ToString();
            string VisitorIPAddress = Request.ServerVariables["REMOTE_ADDR"];