hi friends.. i am doing asp.net project.. in that project in login page if any one enter wrongly more than 4 times username or password means i want to show dummy page that time i need to save that person IP Address and his details...my Question is how can i count the wrong attempt and how can i get IP address.. plz help me for me.. thanks in advance..send to my mail..


by SP

hi friends.. i am doing asp.net project.. in that project in login page if any one enter wrongly more than 4 times username or password means i want to show dummy page that time i need to save that person IP Address and his details...my Question is how can i count the wrong attempt and how can i get IP address.. plz help me for me.. thanks in advance..send to my mail..


by SP

..................
To get the IP Address

Response.Write(Request.UserHostAddress.ToString());
        Response.Write(Request.UserHostName.ToString());
        Response.Write(Request.ServerVariables["REMOTE_HOST"]);
        Response.Write(Request.ServerVariables["REMOTE_ADDR"]);

They all give same output

and try to use static variable for counting number of logins..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.