ip2country ver.1.06

Published  Sep 17, 2010
Updated  Nov 27, 2012

Description

ip2country "Quickly" gives a country name from an IP (less than 0.01 sec). Updated on 2 Nov 2011

All flattrs received will be used to flatter others : )

The Script can:

The addon comes with extensive built in help documentation and works with mIRC v6.01+

Precofigured to run seamlessly on loading. No need to set up anything as it starts with a recommeded set of options. It's fun, easy to use, and simple to switch on & off all, or just parts of it.

Addon will work from mIRC v6.01 upwards Please be aware that country information can only be shown if the IP is found and not hidden, and the country is where the IP is from and not necessarily the country the person is in.

Screenshots

Download

Filename
Size
Date
Downloads
  ip2country.ver.1.06.zip
897.58 KB
Nov 02, 2011
448
  ip2country.ver.1.05.zip
977.32 KB
Oct 10, 2010
588
  ip2country.ver.1.04.zip
976.09 KB
Oct 02, 2010
36
  ip2country.ver.1.03.zip
964.51 KB
Sep 26, 2010
42
  ip2country.ver.1.02.zip
963.68 KB
Sep 20, 2010
55
  ip2country.ver.1.0.zip
962.25 KB
Sep 17, 2010
51

Reviews

  (1)  
Sort by 
 5.0 stars
The first thing that strikes me about this addon is how insanely comprehensive it is. The author appears to have all his bases covered and I have little doubt that any user, should they have the patience to go through the well structured help sections in both the readme and the main dialog, could benefit greatly from it. However, for purposes of conducting this review I will play the part of the average user, inattentive and careless, whose first instinct is to load the script and dive straight into it without a moment's consideration. One of the greatest features, and the one that drew me to the addon initially, is the ability to show the country a user is connecting from in channel events (join, part, quit etc.). A curious person may routinely find himself venturing to IP Whois sites to look up the location of a user with whom they are unfamiliar; this addon would serve as an indispensable attachment to his regular mIRC setup. On to the script!

Ok, loading it was trivial. I'm told that the options that piqued my interest are already enabled, so let's try connecting and joining a busy channel: #ubuntu on Freenode with its 1500 users should do the trick. Within seconds:

[13:24:02] * amatuxx (~user@p5B2E9C79.dip0.t-ipconnect.de) from Germany has joined #ubuntu
[13:24:04] * wars (~wars@123.118.149.241) from China has joined #ubuntu

Note the timestamps; this script works quickly and on both hostnames and even unresolved IPs too. In fact, using the benchmark utility (accessible through popups as well as the main dialog) shows that a typical IP lookup takes an average of ~2ms on my machine. For most intents and purposes, that is instantaneous and a very impressive result. I leave the script running in the channel and open the scripts editor to glance at the code.

The script file is colossal, over 200KB! More documentation; the 'advanced features' section reveals a general purpose $ip2c() identifier geared towards scripters who plan to build upon the existing functionality of the script on the offchance that the author has neglected to include a particular feature. The code appears to be well commented, but at the same time I don't envy the scripter who takes it upon himself to try and follow it all. Scripting ettiquette seems to have been adhered to satisfactorily; names of aliases, variables etc. are verbose enough to be well understood, the code is split up into manageable routines, and the author has even simulated tabbing in his main dialog table definition so that it looks neater and more organized.

As a scripter, the portion of the code that interests me is the part aptly referred to by the author as 'the heart of the script': an alias that is given an IP and locates the range in which it lies from the 130,000+ ranges in its database. The solution is elegant: it's coded entirely in mIRC script and employs a simple binary search algorithm to locate a range in at most 17 iterations of its core loop. Measures have been taken to reduce execution time on all orders of magnitude and this routine is a prime example of what a difference a good method of data storage can make.

For a man of simple pleasures, this alias has hitherto served me with what I can safely say is all I really need. However, I haven't even scratched the surface of what's possible. I haven't mentioned its trigger response options, its extensive database update system, its performance monitors, plus the fact that it gives you complete and easy-to-use control over the list of hostname and IP entries. Download the addon and see these things for yourself, chances are you will be blown away.

My sincere compliments to the author for what must have been an extraordinarily laborious task. It's a shame that this had to be released at a time where site activity is at such a low point. Nevertheless, I hope this addon gets all the attention it deserves.
1 comment(s)       Posted Oct 14, 2010 by jaytea

Sign in to comment.
  -  Aug 30, 2014

Awesome script, very helpful and informative!

Thanks, Tom

 Respond  
Free`   -  Nov 03, 2011

Released version 1.06 on 03 Nov 2011

The major addition (change) is the facility to see the country codes of BANS as they are set or unset, and subsequently, to see which countries are encompassed in a wild card IP. A simple example is a ban on !@113.10.* would show the countries: HK SG KR

Be aware that some ban masks can encompass many countries; the list may be longer than your liking. Example: //echo $ip2c.ban.check(212.*) returns the 2 digit country code (very long?) string of:

BN UZ GA PK CD CG ZA TJ PH HK TZ GH QA VA OM LV AX KR HN AN UY VE GU VI ID NZ AU CN MY TW ZW CU EC SG PR DO GT CO BO PA PE MX CA BY BH MA RE BR LI TH GM GE RS MT FO GR BF KW BA AZ RO AM JP JO CY IS GG LB IL CL AR GI BI SC SZ UG SL SM KN NP SO KE ET MR AF MM CM CI MZ NG FI HR PS SI KZ MK EG LT AS SY SA DK AT JE LU IN EE NE AE IQ A2 SK BG CZ CH NO BE IT HU SE KG TR IE PL IR UA US NL MD SD FR PT GB ES RU EU DE

This option is turned OFF by default and you need to enable it in ip2c > Settings & Options > (Options Tab) Bans/Unbans shows cc

Have fun, and please do give a feedback comment, and it would be appreciated if you remember to click the Like button at the top if you enjoy the script.

 Respond  
Dani_l11   -  Sep 07, 2011

bump

no there are no bumps on hawkee, never the less this script deserves attention!

 Respond  
jaytea   -  Oct 13, 2010
submitted as a review
 Respond  
Free`   -  Sep 26, 2010

Well, the: /ip Nickname :feature has been added - as suggested by silent.nahid ! Thanks for the idea silent.nahid !!

Also a few small fixes than no one but me noticed :P If you're interested, they're included in the readme.txt which comes with the script.

-Cheiron- "not a bad script this one. i like :) "

Thanks Cheiron ! Cheers

Free`

 Respond  
Cheiron   -  Sep 24, 2010

not a bad script this one. i like :)

 Respond  
Free`   -  Sep 23, 2010
  • Jeroenz0r - Thanks for the thumbs up!

  • silent.nahid - "wud've been nicer if u do !ip nick and it shows up the persons ip!nice script anyway"

Nahid, that's a good idea ! Wonder why I didn't think of it :P Shouldn't take but a few lines to do that. Will also include that nick's common channels with you. Look for it on the next update, perhaps by the weekend !

Free`

 Respond  
silent.nahid   -  Sep 22, 2010

ye it's a huge one lol...it shows up this when u look up an ip by using right click : (p@72.91.16.243) IP: iRoc.4ever is not a proper IP

wud've been nicer if u do !ip nick and it shows up the persons ip!nice script anyway :D

 Respond  
Jeroenz0r   -  Sep 21, 2010

This is a huge script, and I like it! It's very fast and usefull. Thanks :)

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.