How to determine countries based on IP addresses

Source: Internet
Author: User
Java method for determining countries based on IP addresses

The website provides the IP address corresponding to the country database in CSV format:

Http://software77.net/cgi-bin/ip-country/geo-ip.pl

The website also provides links to scripts for processing the data in various mainstream languages:

Http://software77.net/geoip-software.htm

The database can be opened in Excel, and its format can be seen:

Java processes the following web pages:

Http://members.optusnet.com.au /~ Malan2000/iptocountry.html

Is the data that can be imported into MySQL.

If it is not for development, but for end users, see the tool mentioned in monitoring local TCP/IP packets through smartsniff.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.