By Xinus


2009-12-20 11:56:04 8 Comments

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 ?

5 comments

@Bram 2014-01-06 20:48:10

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.

@Grumpy 2009-12-20 12:15:06

Maxmind is the one we use

@Kristina Brooks 2009-12-20 11:59:37

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

@Kristina Brooks 2009-12-20 12:01:04

but it isn't free :(

@Rob 2009-12-20 11:57:34

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

@T.J. Crowder 2009-12-20 12:01:24

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. :-)

@pudaykiran 2014-01-28 09:36:51

@T.J.Crowder it is not showing exact location. Shown some other.

@T.J. Crowder 2014-01-28 09:37:48

@udaykiranpulipati: These things are imperfect.

Related Questions

Sponsored Content

24 Answered Questions

[SOLVED] How to get the client IP address in PHP

26 Answered Questions

[SOLVED] How to get the IP address of the server on which my C# application is running on?

  • 2009-07-01 13:20:23
  • Nefzen
  • 357254 View
  • 360 Score
  • 26 Answer
  • Tags:   c# ip-address

22 Answered Questions

[SOLVED] Getting visitors country from their IP

50 Answered Questions

[SOLVED] How to get client's IP address using JavaScript?

24 Answered Questions

[SOLVED] Getting the location from an IP address

17 Answered Questions

[SOLVED] Get Country of IP Address with PHP

5 Answered Questions

[SOLVED] Get the client IP address using PHP

  • 2013-03-29 07:24:07
  • user1752627
  • 679338 View
  • 175 Score
  • 5 Answer
  • Tags:   php ip-address

4 Answered Questions

[SOLVED] Ip address to country with database

1 Answered Questions

Cross country development, change IP address

0 Answered Questions

Major IP Address Blocks to Country Mappings

  • 2013-06-24 21:31:55
  • culturalanomoly
  • 1879 View
  • 1 Score
  • 0 Answer
  • Tags:   geolocation ip

Sponsored Content