views:

163

answers:

4

I want to show country flag depending on ip address I receive at server side. Are fixed ip addresses are assigned to countries ? Where can I get database for ip address to country mapping ?

+2  A: 

You're looking for an IP geolocation service such as MaxMind.

Rob
Or GeoBytes (http://www.geobytes.com/IpLocator.htm?GetLocation), or... We should all probably just edit this answer (which is, generically, use a reference site) with a list of them. :-)
T.J. Crowder
+1  A: 

ip2location.com provides an IP range database which can be used to tag IP addresses

they provide it in different formats as well so you can choose which one is useful to you

Nick Brooks
but it isn't free :(
Nick Brooks
+1  A: 

Maxmind is the one we use

Grumpy