|
-
December 22nd, 2009, 02:20 AM
#1
how to get user origion country from IP
Hi,
I am working on user log management. for this i want to log user region setting, from which region/country user is accessing my website.
i can get user IP, pls how do i map/get country fromm that IP. or is there any way to achieve this.
thx
-
December 22nd, 2009, 03:07 AM
#2
Re: how to get user origion country from IP
There is no way to achieve using .NET itself. I know a database that is used by some big companies, and our companie uses this database also since shortly.
Take a look an www.maxmind.com. There are some free versions (but less accurate) and some paid version. Take a look at it and see if it fits your needs.
-
December 22nd, 2009, 04:40 AM
#3
Re: how to get user origion country from IP
For DBs and services check below link too,
http://www.ip2location.com/free.asp
Regards,
Ramkrishna Pawar
-
December 22nd, 2009, 04:43 AM
#4
Re: how to get user origion country from IP
And here is one Free service, you just supply the IP by suffixing it to the URl and you get a XML of details,
http://freegeoip.appspot.com/xml/121.242.40.15
Regards,
Ramkrishna Pawar
-
December 22nd, 2009, 06:07 AM
#5
Re: how to get user origion country from IP
 Originally Posted by Krishnaa
I tried this URL, it works, but not accurate at all. I provided my IP adress and only the Country was correct. The region and city was about 350KM wrong.
 Originally Posted by Krishnaa
Also this is not accurate. Again only the country was correct.
@imughal: It depends on your needs what you need to choose. If only the country is enough for you, you can use one free version provided by Krishnaa or me. If you really want to have accurate results, I would go for the paid one I suggested.
-
December 22nd, 2009, 10:33 AM
#6
Re: how to get user origion country from IP
I find a great resource for things like this is to check out websites like zen cart that often have opensource plugins already developed and available. Check out how they did it then right the same thing in your platform.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|