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
Post a Comment