Page 1 of 2

Howto: Country Flags In Peers Tab (GeoIP Database Settings)

Posted: Sun Jun 07, 2015 2:34 am
by Shryp
EDIT 2019:
The databases are no longer available. Here is a link to a copy I have archived.
http://shryp.ashendust.com/deluge/GeoIP.dat.zip

------

This example is for a Windows 7 setup, but any OS should be just about the same. Just change the save folder locations and unzipping program to suit your computer.

This is sort of a hidden function that isn't really explained anywhere so I am making a short post with directions of how I enabled it.

If you look on the peers tab you will see an empty column in front the the IP addresses. That is there for country flags, but you need to download a database to make it work.

Here are 2 example screenshots I found in some old posts on this forum.

Image

Image

To enable the flags you need to download the database from this website:
http://dev.maxmind.com/geoip/legacy/geolite/

If you just want the direct download link:
http://geolite.maxmind.com/download/geo ... oIP.dat.gz

Download and extract that file. I use 7zip to extract it. I am not sure if the normal windows zipper will work on tar.gz or not. 7zip requires you to unzip it twice. The first file you get will be a .tar file and the second with be the .dat file you will need.

Next copy that GeoIP.dat file to anywhere you want on your computer. If you are using the client/server thinclient setup copy it to the daemon side and if not just copy it to your normal computer.

In my case I saved it to the config file: C:\Users\<your user name>\AppData\Roaming\deluge\

Next open up deluge, go to: Preferences->Other and find the GeoIP Database Location box and copy in the location of your file. My example: C:\Users\<your user name>\AppData\Roaming\deluge\GeoIP.dat

Last just restart your client and the dameon and it should start working. Once it is working on the daemon server any client that connects to it will get the flags.

The website says they update their databases on the first Tuesday of every month so if you want it to be more accurate you might want to update the database once in a while.

Re: Howto: Country Flags In Peers Tab (GeoIP Database Settin

Posted: Fri Jun 12, 2015 12:56 am
by garnertr
Awesome tip; thanks!

Forgot to say, WORKS like you advertised, thanks for the simple directions... :)

Re: Howto: Country Flags In Peers Tab (GeoIP Database Settin

Posted: Fri Jun 12, 2015 2:00 am
by Shryp
Glad someone found it helpful. I always wondered what those settings were for and how to make them work. I searched around and found it very difficult to find any documentation on it.

Re: Howto: Country Flags In Peers Tab (GeoIP Database Settings)

Posted: Tue Aug 02, 2016 10:58 am
by Makewa
Next question .. how to install IPv6 database alongside v4?

Re: Howto: Country Flags In Peers Tab (GeoIP Database Settings)

Posted: Tue Aug 02, 2016 2:30 pm
by Shryp
Makewa wrote:Next question .. how to install IPv6 database alongside v4?
Sorry, no clue. I have yet to mess around with IPv6 at all on any of my equipment.

Re: Howto: Country Flags In Peers Tab (GeoIP Database Settings)

Posted: Tue Aug 02, 2016 4:11 pm
by Cas
From what I can tell the IPv6 db has mapped IPv4 address: https://www.maxmind.com/en/ipv6-information-and-faq

Shyrp's OP should really be put into a wiki page, not sure where exactly but perhaps the FAQ would suffice for now...

Re: Howto: Country Flags In Peers Tab (GeoIP Database Settings)

Posted: Tue Aug 16, 2016 11:52 am
by Makewa
Yes, but putting in the folder as above does not work.

Re: Howto: Country Flags In Peers Tab (GeoIP Database Settings)

Posted: Thu Jan 25, 2018 8:48 pm
by dondraper
For OS X: /Users/*username*/.config/deluge/GeoIP.dat

Re: Howto: Country Flags In Peers Tab (GeoIP Database Settings)

Posted: Tue Feb 05, 2019 5:24 am
by dondraper
Just tried to fix as I noticed it missing. Looks like the download link is down? Pls advise. Thanks!

Re: Howto: Country Flags In Peers Tab (GeoIP Database Settings)

Posted: Tue Mar 05, 2019 10:42 pm
by truenorth
If you check with the maxmind website, they've discontinued the legacy databases. The new databases are there. The advice at http://dev.maxmind.com/geoip/legacy/geolite/ isn't right.