Associate IP addresses with countries [closed]
Asked Answered
F

5

10

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 ?

Fideicommissum answered 20/12, 2009 at 11:56 Comment(1)
Quite straight forward. Get country flag icons & map IP address to country name. The icon & country names are linked via country codes.Hepatitis
G
3

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

Gaiseric answered 20/12, 2009 at 11:57 Comment(3)
Or GeoBytes (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. :-)Karlotta
@T.J.Crowder it is not showing exact location. Shown some other.Canadianism
@udaykiranpulipati: These things are imperfect.Karlotta
F
1

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

Fricative answered 20/12, 2009 at 11:59 Comment(0)
R
1

Maxmind is the one we use

Reata answered 20/12, 2009 at 12:15 Comment(0)
W
0

Open Sourced self contained flag rendering based on IP: ip2ensign

It will lookup UV coordinates in a flag texture atlas that matches an arbitrary IP. And it comes with the IP range database and the texture.

Wham answered 6/1, 2014 at 20:48 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.