Is there any range of Ip address belongs to a particular country..??

Morningdot Hablu

Morningdot Hablu

@morningdot-6Xuj4M Oct 18, 2024
Hello friend's,
Currently i creating a program(using java) which will display the location of the viewer of a particular site.But i need some help.
As we know many sites like whatismyipaddress provide you the information of the Ip address you submitted.
But i want to know how these sites can able to calculate which Ip address location belongs to which country or which location.Is there any range of Ip address belongs to a particular country ??

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Sep 21, 2010

    Hi mohit
    Open Google .com and type
    MAXMIND +IP look up
    You will get something of your use.
  • durga ch

    durga ch

    @durga-TpX3gO Sep 21, 2010

    hmm,
    Every service provider as I see, has a range of allocated Public IP address range, when you open the webpage requests are sent down to the webpage. not only is a single website does the whole action , but as well,many more services are taken int account. For the website is is easy to say from which IP the request came, by simply seeing the source address.(in this case the public gateway address)
    for example my home computer starts by asking the gateway about :whatismyipaddress.com as below
    192.... would be my home private addressing, but a traceroute to whatismyipaddress.com resulted in IP address:67.203.139.152, which later acks the packets and redirects my request to various other services like:
    calling the HTTP functions like,
    GET /CSS/myip.css
    GET /gampad/google_Service.js and so on..
    [​IMG]
  • Morningdot Hablu

    Morningdot Hablu

    @morningdot-6Xuj4M Sep 21, 2010

    @Durga As you mentioned every service provider has a range of allocated Public IP address.So on that basis we can say that this Ip address belongs to that location.
    Is the range fixed ??
    Is the same case with country ??
    If yes!!
    Provide me the range of some countries or any link where i find the ranges so that i can able to program for finding the country to which a particular Ip address belongs.
    .
    @Goyal Thanks i started to read about it.
  • Ashraf HZ

    Ashraf HZ

    @Ash Sep 21, 2010

    mohit007kumar00
    @Durga As you mentioned every service provider has a range of allocated Public IP address.So on that basis we can say that this Ip address belongs to that location.
    Is the range fixed ??
    Is the same case with country ??
    If yes!!
    Provide me the range of some countries or any link where i find the ranges so that i can able to program for finding the country to which a particular Ip address belongs.
    .
    @Goyal Thanks i started to read about it.
    In general, IPs are first allocated by the Internet Assigned Numbers Authority (IANA) to Regional Internet Registries (RIR) around the world. There are five of them and their associated regions:

    AfriNIC: Africa Region
    APNIC: Asia/Pacific Region
    ARIN: North America Region
    LACNIC: Latin America and some Caribbean Islands
    RIPE NCC: Europe, the Middle East, and Central Asia

    These RIRs will maintain the regional WHOIS and reverse DNS databases. Over time, RIRs will request for more allocation. So there aren't really any fixed ranges for these regions. You can find the a rough RIR allocation here:
    #-Link-Snipped-#
    However, some IP ranges that were administered to an RIR are now given to another (like ARIN to APNIC), so its quite dynamic as per allocation request. So from RIRs, they'll further allocate IP blocks to National Internet Registeries and ISPs in those specific regions.

    There is a website the lists IP ranges of countries here:
    #-Link-Snipped-#

    Though as I mentioned earlier, allocation can be dynamic, so there might be a few blocks that are swapped amongst countries after the list is updated. You'll need to query the WHOIS databases of the RIRs in order to get the latest IP block information and which country they belong to 😀
  • Morningdot Hablu

    Morningdot Hablu

    @morningdot-6Xuj4M Sep 21, 2010

    Thanks for the nice information!!
    Now i searched for the query "how to connect with WHIOS server" and i get some links which provide the facility to connect with the server.
    .
  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Sep 26, 2010

    Mohit
    What about your progress on this?
    Have you study it further?
  • Morningdot Hablu

    Morningdot Hablu

    @morningdot-6Xuj4M Sep 26, 2010

    Check this link goyal...#-Link-Snipped-#
    .
    It will provide you the code which is used to display the visitor but.
    But some php program is used there.
    I just started to run some php programs.But I need some time to do this.
  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Sep 26, 2010

    Hey i have asked you something else

    Have you read about MAXMIND?
  • Morningdot Hablu

    Morningdot Hablu

    @morningdot-6Xuj4M Sep 27, 2010

    Actually didn't get time for this(These day's i am vary busy)...but i saved some good pages.
    I must read about this when i get some time.
    .
    If you read about it please post some short notes on it.