Hello Every one,
In my project I want to keep the track of users or Client from where did he logged in . I need to get parameter like IP address , location
(latitude,longitude) so how can i get that two parameter in my Web application....
You can get the IP address from Request.UserHostAddress. There are services that help you establish the location of the user based on IP address like this. Some of them are mentioned in this previous thread that asked the same question: http://forums.asp.net/t/1405094.aspx/1
arun arun
Member
2 Points
12 Posts
Get Client IP Address and His location for where he login to my web application
Nov 04, 2012 07:13 AM|LINK
Hello Every one,
In my project I want to keep the track of users or Client from where did he logged in . I need to get parameter like IP address , location
(latitude,longitude) so how can i get that two parameter in my Web application....
1. IP Address
2. Location
Thanks in Advance,
Arun R.V
Mikesdotnett...
All-Star
154951 Points
19870 Posts
Moderator
MVP
Re: Get Client IP Address and His location for where he login to my web application
Nov 04, 2012 10:12 AM|LINK
You can get the IP address from Request.UserHostAddress. There are services that help you establish the location of the user based on IP address like this. Some of them are mentioned in this previous thread that asked the same question: http://forums.asp.net/t/1405094.aspx/1
Beginning ASP.NET Web Pages with WebMatrix | My Site | Twitter
BrockAllen
All-Star
27554 Points
4912 Posts
MVP
Re: Get Client IP Address and His location for where he login to my web application
Nov 04, 2012 12:28 PM|LINK
And the other approach is the geolocation API:
http://www.w3.org/TR/geolocation-API/
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/