Click here to Skip to main content
16,018,904 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I need to find the visitors' locations (country) from their IP address. I am developing my site in ASP.NET with VB. Could anybody help me solve my problem or give me some ideas into how I can start on this.

Regards,
Sasikumar
MCAMDOIS
Posted
Updated 26-Oct-10 4:27am
v2

 
Share this answer
 
Read this

As it explains you get the users IP Address using
Request.ServerVariables("REMOTE_ADDR")
and then do a look up against the Ip-to-country database.
 
Share this answer
 
Comments
Dalek Dave 26-Oct-10 10:29am    
Good Answer.
I have seen something like it before but is there a downloadable DB or a DLL for these?
Simon_Whale 26-Oct-10 10:32am    
Download the database from http://sourceforge.net/projects/countrydb/
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900