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

General support for problems installing or using Deluge
Shryp
Moderator
Moderator
Posts: 521
Joined: Mon Apr 20, 2015 10:20 pm

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

Post 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.
Last edited by Shryp on Fri Jun 12, 2015 1:55 am, edited 1 time in total.
garnertr
Member
Member
Posts: 17
Joined: Sun Jan 06, 2008 7:42 pm
Location: North Las Vegas, Nevada

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

Post by garnertr »

Awesome tip; thanks!

Forgot to say, WORKS like you advertised, thanks for the simple directions... :)
Shryp
Moderator
Moderator
Posts: 521
Joined: Mon Apr 20, 2015 10:20 pm

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

Post 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.
Makewa
New User
New User
Posts: 5
Joined: Sat May 21, 2016 6:50 am

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

Post by Makewa »

Next question .. how to install IPv6 database alongside v4?
Shryp
Moderator
Moderator
Posts: 521
Joined: Mon Apr 20, 2015 10:20 pm

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

Post 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.
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

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

Post 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...
Makewa
New User
New User
Posts: 5
Joined: Sat May 21, 2016 6:50 am

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

Post by Makewa »

Yes, but putting in the folder as above does not work.
dondraper
New User
New User
Posts: 5
Joined: Wed Nov 02, 2016 4:43 pm

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

Post by dondraper »

For OS X: /Users/*username*/.config/deluge/GeoIP.dat
dondraper
New User
New User
Posts: 5
Joined: Wed Nov 02, 2016 4:43 pm

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

Post by dondraper »

Just tried to fix as I noticed it missing. Looks like the download link is down? Pls advise. Thanks!
truenorth
Member
Member
Posts: 17
Joined: Fri Jan 19, 2018 9:29 pm

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

Post 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.
Post Reply