Getting a users IP address
-
Does anyone have any clue of the code used to get a user's IP address? At the moment i'm using
HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
but i'm having trouble implementing it and am not sure if it's the right method to use :~ Thanks
"Sex is not the answer, it's the question and the answer is yes"
-
Does anyone have any clue of the code used to get a user's IP address? At the moment i'm using
HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
but i'm having trouble implementing it and am not sure if it's the right method to use :~ Thanks
"Sex is not the answer, it's the question and the answer is yes"
How about... Request.UserHostAddress()
EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE. How to post a question
-
How about... Request.UserHostAddress()
EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE. How to post a question
Thanks Sherin, can't believe i missed that one.
"Sex is not the answer, it's the question and the answer is yes"
-
Thanks Sherin, can't believe i missed that one.
"Sex is not the answer, it's the question and the answer is yes"
:)
EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE. How to post a question