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

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -