Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

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; } 
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# convertir caracter con tilde 
Csharp :: sharepoint c# get list item query by lookup 
Csharp :: render world space UI infront of everything unity 
Csharp :: ArgumentException: Input Key named: Fire1 is unknown 
Csharp :: unity dropdown 
Csharp :: getelement video 
Csharp :: superscript list 
Csharp :: asp c# page scroll position change after postback 
Csharp :: async where linq 
Csharp :: c# json 
Csharp :: c# loop 2 time tables 
Csharp :: unity reload active scene 
Csharp :: linq select max value from list 
Csharp :: c# selenium xunit testing 
Csharp :: C# check if object is default 
Csharp :: unity cannot click button 
Csharp :: encrypt password easiest way in web app .net 
Csharp :: c# if statement no braces 
Csharp :: c# while true loop 
Csharp :: c# guid from string 
Csharp :: 2d array 
Csharp :: the name scripts does not exist in the current context mvc 5 
Csharp :: vb.net drag window without titlebar 
Csharp :: rigidbody.velocity.magnitude 
Csharp :: unity interface 
Csharp :: c# Write a program to reverse an array or string 
Csharp :: by value by reference c# 
Csharp :: ssml 
Csharp :: unity animation length 
Csharp :: adding to a dictionary class c# 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =