Posts

Showing posts with the label get IP Of Client machine

How to get IP Of Client machine in ASP.Net

IP Of Client machine the following function is used to get IP of Client Machine Public string GetIPOfClient()         {             string returnvalue = string.Empty;             try             {                 System.Web.HttpContext context = System.Web.HttpContext.Current;                 string ip = context.Request.ServerVariables[" HTTP_X_FORWARDED_FOR "];                 returnvalue = context.Request.ServerVariables[" REMOTE_ADDR "];                 if (!string.IsNullOrEmpty(ip))                 {                     string[] addresses = ip.Split(',');           ...

Popular posts from this blog

Insert Data in database and bind to gridview

Api

Oracle database