Click here to Skip to main content
15,905,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can we get the country name using ip address in asp.net using c#
Posted
Updated 15-Jul-11 0:00am
v3

 
Share this answer
 
Comments
NandaKumer 15-Jul-11 8:31am    
nice link
RaviRanjanKr 15-Jul-11 11:03am    
Thank You.
BobJanova 15-Jul-11 8:37am    
Good answer. As a note to the OP, note that it is easy to use a proxy to hide your location, so using this information for anything more than flavouring the user's experience or selecting a default landing page is not recommended.
RaviRanjanKr 15-Jul-11 11:04am    
Thank You.
hello

follow the link it may be useful to you
http://revenmerchantservices.com/page/Your-own-Ip-to-location-.aspx[^]


sanjeev
 
Share this answer
 
 
Share this answer
 
 
Share this answer
 
You have two choices effectively. The first choice is to use a web service to look up the country based on the IP address, but most services charge for usage as they are commercial offerings. The second option is to use Webnet77[^] to download the IP address ranges and maintain them yourself. You can then match the data based locally.
 
Share this answer
 
Please visit below links,

ip2location[^]

How-do-IPAddress-to-NameCountry[^]

hope it helps.
 
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