asp.net - How do I get a user's ip address with .NET code? -


how user's ip address .net code? i'm using foo basic web studio ide uses asp.net code.

here way can ip address of users.

string clientip = request.servervariables("http_x_forwarded_for");  if(string.isnullorempty(clientip))        clientip = request.servervariables("remote_addr") 

Comments

Popular posts from this blog

c# - Sort XmlNodeList with a specific Node value -

Android Java.Lang.RuntimeException : Unable to start activity Component Info -

actionscript 3 - Equivalent to moveReceived in ElectroServer 5 -