Warning: session_start() [function.session-start]: open(/tmp/sess_f6d7195216df4276134fade20ea2bf3d, O_RDWR) failed: Read-only file system (30) in /www/weirdsilence/weirdsilence.net/www/index.php on line 30
Weird Silence » IP to Country
   News      Software      Tools      Forum      Downloads      Links      About  
Login

IP to Country

Recently, in connection with our game browser project, we've been interested in geo-locating IP addresses.
This can be done with GeoIP and others. We found another project that makes available a free CSV file. Namely direct-i's ip-to-country project - Their CSV is located here! Naturally this is unusable in itself for anything but converting it to a usable form, such as databases, or a specialized format.

I designed a binary format for very fast searching. We have achieved speeds in excess of three million lookups per second! To give you some ideas of the speed, we have tested our various implementations, looking up 18328 unique IP addresses (in the C implementation we repeat those 100 times to get a more accurate benchmark).
We're releasing it under the GPL. Have a look!

If you're using this software, we would like to know! We're thinking of compiling a list of links to projects that use it - So if you would like to be listed, drop us a mail! A mail link is at the bottom!

If you find any bugs, or have suggestions/improvements, or anything else, you're welcome to mail us! (see addresses at bottom)

Also check out the forum for this software! or try the online demo.

You might also subscribe to the IP 2 Country RSS News Feed!

Source code

Darren has contacted us to let us know that he made a PHP-version of the binary database builder! So if you can't use our windows executable, or the Python-builder, you can go fetch the source code at his site! Good work, Darren!

Weird Silence has released the following source codes:

Binaries

 

News

Binary database updated
2008/06/04 10:58 by lars

I realize that it has been a very long time since the last update of the database, so here we go.

The binary database has been updated to the latest from ip-to-country: It's based on their CSV from May 1st 2008

Remember, you can always build your own, using either the python script, windows executable or Darrens PHP code! 




News archive2007/05/08 - IP2C - PHP Version of Database Builder
2007/04/10 - Binary database updated
2007/01/18 - Binary database updated
2006/12/06 - Binary database updated
2006/11/08 - Binary database updated
2006/07/27 - Binary database updated
2006/04/17 - Binary database updated
2006/02/03 - Binary database updated
2005/12/18 - Binary database updated
2005/11/28 - Binary database updated
2005/08/23 - Binary database updated
2005/07/22 - Binary database updated
2005/06/13 - Binary database updated
2005/06/01 - Binary database updated!
2005/06/01 - RSS Feed for IP 2 Country News Added
2005/04/30 - Binary database update
2005/01/21 - punBB modded to show country of poster
2005/01/20 - Updated binary database

 


Send us mail!



MySQL: 0.0000 s, 0 request(s), PHP: 0.0210 s, total: 0.0210 s, document retrieved from cache.
Get Firefox!
Etomite »

« Etomite Parse Error »

Etomite encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
 
PHP error debug
  Error: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) 
  Error type/ Nr.: Warning - 2 
  File: /www/weirdsilence/weirdsilence.net/www/index.php 
  Line: 118 
  Line 118 source: if(@!$this->rs = mysql_connect($this->dbConfig['host'], $this->dbConfig['user'], $this->dbConfig['pass'])) {  
 
Parser timing
  MySQL: 0.0000 s s(0 Requests)
  PHP: 0.0322 s s 
  Total: 0.0322 s s