Last post Oct 20, 2016 04:03 PM by mehulkumarwani
Oct 20, 2016 03:48 PM|Futer|LINK
I want to save information about user location and device. I have e.g. IP and want to check user country.
Any ideas how to check check country by user IP and find out about device?
Oct 20, 2016 03:55 PM|codemovement.pk|LINK
Request.ServerVariables["REMOTE_ADDR"] should work - either directly in a view or in the controller action method body (Request is a property of Controller class in MVC, not Page).
It is working.. but you have to publish on a real IIS not the virtual one.
Oct 20, 2016 04:03 PM|mehulkumarwani|LINK
Is there any proxy?
Please try with "HTTP_X_FORWARDED_FOR".