Horje
asp net saber ip address of client machine IIS Code Example
asp net saber ip address of client machine IIS
 ///  /// Get current user ip address. ///  /// The IP Address public static string GetUserIPAddress() { var context = System.Web.HttpContext.Current; string ip = String.Empty; if (context.Request.ServerVariables["HTTP_X_FORWARDED_FOR"] != null) ip = context.Request.ServerVariables["HTTP_X_FORWARDED_FOR"].ToString(); else if (!String.IsNullOrWhiteSpace(context.Request.UserHostAddress)) ip = context.Request.UserHostAddress; if (ip == "::1") ip = "127.0.0.1"; return ip; } 




Csharp

Related
EventSource Web API C# Code Example EventSource Web API C# Code Example
unity screentoworldpoint Code Example unity screentoworldpoint Code Example
ASP.net ApplicationUser referance not found Code Example ASP.net ApplicationUser referance not found Code Example
.net core change localhost port Code Example .net core change localhost port Code Example
xamarin set environment variables Code Example xamarin set environment variables Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9