GeoIP.dat file

From AMule Project FAQ
Revision as of 16:04, 20 June 2012 by Reorder (Talk | contribs | merge | delete)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

File

Name: GeoIP.dat

Location: ~/.aMule/

Description

Binary format file containing a database of the physical location of IP addresses. It is used by the GeoIP extension of php. For more information on that, see the PHP Manual - Geo IP Location.

GeoIP.dat is published by MaxMind. To get the latest version of the file, or to download the APIs for using it, go to the MaxMind GeoLite Databases page.

Format

Binary, and possibly proprietary.

Notes

The location from which to download GeoIP.dat would appear to be hard-coded into Preferences.cpp:

$ grep -n "GeoIP.dat" Preferences.cpp
1254:	s_MiscList.push_back( new Cfg_Str(  wxT("/eMule/GeoLiteCountryUpdateUrl"),
		s_GeoIPUpdateUrl, wxT("http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz") ) );