Currently I am using Request.ServerVariables[“REMOTE_ADDR”] to get the IP from the client.
What guarantees I get when calling this Method. Or should I look in other ServerVariables as well?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Found some really neat information on retrieving the client’s IP address here.
Essentially, you should probably also pay attention to the
Request.ServerVariables("HTTP_X_FORWARDED_FOR")as well. This helps to identify the actual IP address if the end user is going through a proxy whereas theREMOTE_ADDRattribute would be the address of the proxy…unless it is an anonymous proxy in which case, you would still just get the proxy address.