Difference between revisions of "GeoIP.dat file"

From AMule Project FAQ
Jump to: navigation, search
(Created page with '== File == '''Name:''' ''GeoIP.dat'' '''Location:''' ''~/.aMule/'' == Description == Binary format file containing a database of the physical location of IP addresses. It is u…')
 
m (Notes)
Line 17: Line 17:
 
<pre>
 
<pre>
 
$ grep -n "GeoIP.dat" 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") ) );
+
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") ) );
 
</pre>
 
</pre>
  
 
[[Category:Program Files]]
 
[[Category:Program Files]]

Revision as of 16:03, 20 June 2012

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 [[1]]. 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") ) );