storing visitor IP address
-
I want to store the IP address of visitor to my site in Mysql. I wanted to know if it is possible through HTML or JAVA, if yes then please help in code. If the only solution is PHP , then please tell me how can i work simultaneously work with JSP and PHP database code. As i am working on JSP coding, Please tell how to embedded the php code and use it. Don't know PHP. Please help
-
I want to store the IP address of visitor to my site in Mysql. I wanted to know if it is possible through HTML or JAVA, if yes then please help in code. If the only solution is PHP , then please tell me how can i work simultaneously work with JSP and PHP database code. As i am working on JSP coding, Please tell how to embedded the php code and use it. Don't know PHP. Please help
Check the link http://www.rgagnon.com/javadetails/java-0363.html[^] This may help you
Regards Aman Bhullar www.arlivesupport.com[^]
-
Check the link http://www.rgagnon.com/javadetails/java-0363.html[^] This may help you
Regards Aman Bhullar www.arlivesupport.com[^]
public static string getIP(HttpContext rq) { string userIP; HttpRequest Request = HttpContext.Current.Request; if (rq.Request.ServerVariables["HTTP_X_FORWARDED_FOR"] != "") userIP = rq.Request.ServerVariables["REMOTE_ADDR"]; else userIP = rq.Request.ServerVariables["HTTP_X_FORWARDED_FOR"]; if (userIP == null || userIP == "") userIP = rq.Request.UserHostAddress; return userIP; }
April Comm100 - Leading Live Chat Software Provider