Click here to Skip to main content
15,896,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to find out Country Name through IP Address Please give me code and help
Posted
Comments
Amit Jadli 12-Sep-15 6:51am    
You can simply google it...still this is the link you can refer where you can easily find it with code...

http://www.aspsnippets.com/Articles/How-to-get-Country-Name-from-IP-Address-in-ASPNet-using-C-and-VBNet.aspx

See here: Using IP based Geolocation - and why it's pretty much useless.[^] - but ... be aware it's not necessarily correct!
 
Share this answer
 
There is no "code" for this as IP addresses have no relation to geographic locations. If you want to approximate a country from an IP address you'll need to use a geolocation service. Google for them and find one you like and follow their implementation instructions. Note that the better ones might not be free.
 
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