Hi Please let me know how can i get the client IP address. I have used the following .
Ip = <--#echo var="REMOTE_ADDR"-->;
ip = '<%= Request.UserHostAddress>';
But these are not working.
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.
Most web servers (I’m assuming you’re using IIS) provide this information in the REMOTE_ADDR Environment Variable.
Your samples are trying to get at the server’s variables with Classic ASP and Server Side Includes, both of which are turned off by default on modern IIS web servers. You may need to enable classic ASP or SSI, or use the ServerVariables property using ASP.NET