Nirsoft - CountryTraceRoute and MaxMind Geo DataBase

Discuss anything related to portable freeware here.
Post Reply
Message
Author
User avatar
__philippe
Posts: 503
Joined: Wed Jun 26, 2013 2:09 am

Nirsoft - CountryTraceRoute and MaxMind Geo DataBase

#1 Post by __philippe » Fri Aug 09, 2013 2:18 am

Part of CountryTraceRoute's appeal is its ability to display geographic information for each sequential hop returned by the trace.
This magic is achieved by querying either one of two off-line, third-party GeoIP info DB, namely:

http://software77.net/geo-ip/
http://dev.maxmind.com/geoip/legacy/geolite/

I tend to favor MaxMind's product, for its accuracy (resolution down to city name) and wider coverage.
MaxMind DB is updated regularly, *around* (but not always) the 1st Tuesday of each month.

To check the actual production date of the current downloaded DB version, one can either rely on the file time-stamp listed within the *.gz package,
or, even better, verify the hidden time-stamp buried deep-down the uncompressed *.dat file extracted from the *.gz package.

Here is a handy, very simple batch file to display this internal time-stamp:

Code: Select all

@echo off
REM display Maxmind file time-stamp
cs echo MaxMind GeoLiteCity.dat current version :
echo:
tail -c86 *.dat | grep -o -E "GEO.*Reserved"
echo:
Tail and Grep are small *.exe utilities both part of UnxUtils.zip, a nifty collection of stand-alone GNU/Unix-inspired tools, ported to Win32.
http://unxutils.sourceforge.net/

Well worth the 3.36Mb download:
http://sourceforge.net/projects/unxutils/

Historical anecdote:
'cs' is an antediluvian, microscopic (119 bytes !) one-trick pony *.com file, first published in PC Magazine by Charles Petzold, circa 1988, which, you guessed it,
just "Clears the Screen".
Of course, MS 'cls' (built into cmd.exe) does just the same, but 'cmd.exe' Goliath weights a hefty 389,120 bytes vs 'cs.com' David with a mere 119 bytes ...;-)


Cheers,

__philippe

User avatar
Midas
Posts: 4356
Joined: Mon Dec 07, 2009 7:09 am
Location: Sol3

Re: CountryTraceRoute and MaxMind Geo DataBase

#2 Post by Midas » Sun Oct 27, 2013 12:36 pm

@__philippe: I posted some info on UnixKit-tiny, another UnxUtils alternative, at http://www.portablefreeware.com/forums/ ... 772#p66772...

User avatar
__philippe
Posts: 503
Joined: Wed Jun 26, 2013 2:09 am

Re: Nirsoft - CountryTraceRoute and MaxMind Geo DataBase

#3 Post by __philippe » Mon Oct 28, 2013 5:12 am

@Midas: Thanks for the pointer to UnixKit-Tiny.

Appears to include a subset of the GNU-like utilities found in the UnxUtils package.

UnixKit-Tiny: 76
UnxUtils: 124

UnixKit-Tiny utils differ mainly in smaller .exe footprint (Most are UPX-compressed).
Also includes a Bash shell emulator.

For an explanation of the more esoteric tools (LN|NL|Tac|Tsort...)
check http://en.wikipedia.org/wiki/GNU_Core_Utilities

Cheers,

__philippe

Footnote caveat:
UnixKit-Tiny suite includes quite a few external *.dll modules (14 in all)
This cuts the actual number of usable tools down to 62 (half the tools offered in the competing UnxUtils package,
which, BTW, does not need any ancillary *.dll modules).

On the plus side, UnixKit does include two classic Unix editors, absent from UnxUtils:
- vi
- nano (aka pico)
Last edited by __philippe on Tue Oct 29, 2013 9:32 am, edited 1 time in total.

User avatar
SYSTEM
Posts: 1783
Joined: Sat Jul 31, 2010 1:19 am
Location: Helsinki, Finland

Re: Nirsoft - CountryTraceRoute and MaxMind Geo DataBase

#4 Post by SYSTEM » Mon Oct 28, 2013 6:18 am

__philippe wrote:For an explanation of the more esoteric tools (LN|NL|Tac|Tsort...)
check http://en.wikipedia.org/wiki/GNU_Core_Utilities
Thanks. Useful link. :)
My YouTube channel | Release date of my 12th playlist: November 1, 2018

User avatar
Midas
Posts: 4356
Joined: Mon Dec 07, 2009 7:09 am
Location: Sol3

Re: Nirsoft - CountryTraceRoute and MaxMind Geo DataBase

#5 Post by Midas » Mon Oct 28, 2013 6:20 am

Yep, 1+. :)

BTW, OSS Win-Bash (suggested by user spchtr at http://www.portablefreeware.com/forums/ ... 641#p62641) might make a welcome and worthy complement for UnxUtils, but I haven't tested it yet...

Jorie
Posts: 1
Joined: Thu Oct 31, 2013 6:50 pm

Re: Nirsoft - CountryTraceRoute and MaxMind Geo DataBase

#6 Post by Jorie » Thu Oct 31, 2013 7:15 pm

Is it possible to use the free database from IP2Location.com?
We are actually using their Lite version of database in some other projects as it supports ZIP code as well.

User avatar
__philippe
Posts: 503
Joined: Wed Jun 26, 2013 2:09 am

Re: Nirsoft - CountryTraceRoute and MaxMind Geo DataBase

#7 Post by __philippe » Sat Nov 02, 2013 2:36 am

@Jorie

IP2Location Lite DB's format are not currently supported by CountryTraceRoute.

OTOH, MaxMind Geolite-City-Location DB's already include Zip codes for many cities in selected countries, such as (CA CH DE ES FR IT LU NL PT UK US...) *

Also hoping Nirsoft will eventually upgrade CTR to support the new streamlined MaxMind GeoIP2 format, currently under development:
http://dev.maxmind.com/geoip/geoip2/wha ... in-geoip2/

__philippe

* To convince yourself, grab the most recent GeoLiteCity CSV DB from http://geolite.maxmind.com/download/geo ... latest.zip and try

Code: Select all

 "grep -i %1 GeoliteCity-Location.csv", where %1 is some main city name...) 
;-)

User avatar
__philippe
Posts: 503
Joined: Wed Jun 26, 2013 2:09 am

Re: Nirsoft - CountryTraceRoute and MaxMind Geo DataBase

#8 Post by __philippe » Mon Mar 03, 2014 3:35 am

(mostly cloned from CountryTraceRoute main entry comment section)

CoutryTraceRoute v1.20 (02-MAR-2014)
Welcome minor update, introducing a few Command Line options :

Code: Select all

/Start <HostName>
Starts the Traceroute with the specified host name or IP address, for example:
CountryTraceRoute.exe /Start 38.109.218.139

/MaxHops <Number>
Specifies the maximum number of hops.

/Timeout <Number>
Specifies the timeout value in milliseconds.
Still waiting (im)patiently for a major CountryTraceRoute upgrade which will implement access to Maxmind revamped Geolite2 DB.

This evolution of MaxMind's current "GeoIP Legacy" DB, now supports IPv4 and IPv6 addresses, and includes a streamlined internal structure
returning geographical data of refined precision (Geolite2 DB now using GeoNames.org data)

For the inquisitive mind:

http://www.maxmind.com/en/geoip2_beta

http://dev.maxmind.com/geoip/geoip2/wha ... in-geoip2/

http://www.geonames.org/

__philippe

Post Reply