Lookup Country by IP Address

Ask a Question related to PERL Miscellaneous, Design and Development.

  1. #1

    Default Re: Lookup Country by IP Address

    143.182.124.4 [Shameer Balasingam] wrote:
    >
    > There is a database to lookup all IP address space to country. Pretty
    > cool...
    Alternatively try this at the shell prompt:

    whois 207.46.134.190 | fgrep -i country

    Nigel Horne Guest

  2. Similar Questions and Discussions

    1. Global Address/Phone/SSN[Country ID]
      I have to write an application that deals with clients in multiple countries. The addresses, phone numbers, country id and currency information has...
    2. [OT] Utility to lookup hosts on an IP address
      Is there a tool along the lines of nslookup, dig, host, and so on that can list what websites, i.e. domain names, are hosted on a particular IP...
    3. [PHP] Mac Address Lookup
      If you have the IP address, then 'nslookup' or I guess now 'dig' and 'host' would be the newere versions. They are Linux system calls, use...
    4. Mac Address Lookup
      I am trying to do a lookup of a Mac Address via PHP. Is there any way to do so like gethostbyaddr that gets me the name of a machine? Thanks.
    5. Address book and maps: set country?
      Hi. Is there any way of setting the country Address Book uses by default? I'm in the UK, and don't want to have to edit every address to say...
  3. #2

    Default Re: Lookup Country by IP Address

    As it's a perl group I should have given the Perl route:

    #!/usr/bin/perl -wT

    use strict;
    use Net::Whois::IANA;

    my $ip = '212.159.106.41'; # Insert an IP address here

    print new Net::Whois::IANA->whois_query(-ip=>$ip)->country() . "\n";


    Nigel Horne Guest

  4. #3

    Default Lookup Country by IP Address

    I want to know if there is a free service or database available from where I
    can get the country information if I pass it the IP address. If been to a
    site where you can do a free lookup, but I want to automate it.

    Your help or ideas will be greatly appreciated

    Cheers
    Charles


    www Guest

  5. #4

    Default Re: Lookup Country by IP Address

    Try [url]http://www.maxmind.com[/url]


    "www" <charles@paltrack.co.za> wrote in message
    news:3f4eef99$0$64725@hades.is.co.za...
    > I want to know if there is a free service or database available from where
    I
    > can get the country information if I pass it the IP address. If been to a
    > site where you can do a free lookup, but I want to automate it.
    >
    > Your help or ideas will be greatly appreciated
    >
    > Cheers
    > Charles
    >
    >

    Hexagon Guest

  6. #5

    Default Re: Lookup Country by IP Address

    "Hexagon" <spam1@dwstech.com> wrote in message news:<QOF3b.87$cg.9775@news02.tsnz.net>...
    > Try [url]http://www.maxmind.com[/url]
    >
    >
    > "www" <charles@paltrack.co.za> wrote in message
    > news:3f4eef99$0$64725@hades.is.co.za...
    > > I want to know if there is a free service or database available from where
    > I
    > > can get the country information if I pass it the IP address. If been to a
    > > site where you can do a free lookup, but I want to automate it.
    > >
    > > Your help or ideas will be greatly appreciated
    > >
    > > Cheers
    > > Charles
    > >
    > >
    GeoDirection at [url]http://www.geobytes.com/GeoDirection.htm[/url] redirects
    browsers based on their geographic location and also can be used to
    insert localized geographic content into a web page.

    Kind Regards
    Russell Turner
    Russell Turner Guest

  7. #6

    Default Re: Lookup Country by IP Address

    Try [url]http://www.ip2location.com[/url]

    [email]russ@geobytes.com[/email] (Russell Turner) wrote in message news:<c1874a8a.0309290220.3d812e99@posting.google. com>...
    > "Hexagon" <spam1@dwstech.com> wrote in message news:<QOF3b.87$cg.9775@news02.tsnz.net>...
    > > Try [url]http://www.maxmind.com[/url]
    > >
    > >
    > > "www" <charles@paltrack.co.za> wrote in message
    > > news:3f4eef99$0$64725@hades.is.co.za...
    > > > I want to know if there is a free service or database available from where
    > I
    > > > can get the country information if I pass it the IP address. If been to a
    > > > site where you can do a free lookup, but I want to automate it.
    > > >
    > > > Your help or ideas will be greatly appreciated
    > > >
    > > > Cheers
    > > > Charles
    > > >
    > > >
    >
    > GeoDirection at [url]http://www.geobytes.com/GeoDirection.htm[/url] redirects
    > browsers based on their geographic location and also can be used to
    > insert localized geographic content into a web page.
    >
    > Kind Regards
    > Russell Turner
    MK Wong Guest

  8. #7

    Default Re: Lookup Country by IP Address

    "Russell Turner" <russ@geobytes.com> a écrit dans le message de
    news:c1874a8a.0309290220.3d812e99@posting.google.c om...
    [...]
    > GeoDirection at [url]http://www.geobytes.com/GeoDirection.htm[/url] redirects
    > browsers based on their geographic location and also can be used to
    > insert localized geographic content into a web page.
    Hem... don't want to throw oil were water is needed but it seems maxmind.com is
    more accurate. I'm surprised to discover I'm living in Algeria :-D. I'm Belgian
    and sure I'm not spoofing anyone's identity. GeoRedirect and ip2location are
    both wrong.

    Vince C.


    Vince C. Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139