MyNixOS website logo
Description

Lookup for IP Address Information.

Enables the user to find the country, region, district, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather, Mobile Country Code, Mobile Network Code, mobile brand name, elevation, usage type, address type, IAB category and Autonomous system information that any IP address or hostname originates from. Supported IPv4 and IPv6. Please visit <https://www.ip2location.com> to learn more. You may also want to visit <https://lite.ip2location.com> for free database download. This package requires 'IP2Location Python' module. At the terminal, please run 'pip install IP2Location' to install the module.

Description

Enables the user to find the country, region, district, city, coordinates, zip code, ISP, domain name, timezone, connection speed, IDD code, area code, weather station code, weather station name, mobile, usage type, address type, IAB category and ASN that any IP address or hostname originates from.

Installation

R Package

  1. Launch RStudio IDE.
  2. Make sure devtools is installed on your local machine. At the console window, run install.packages("devtools")
  3. Load devtoolsrequire(devtools)
  4. Install the package install_github("ip2location/ip2location-r")

Usage

  1. Call the open() and get_all() function to open and get all the information about the IP address
> ip2location::open("~/IP-COUNTRY-REGION-CITY-LATITUDE-LONGITUDE-ZIPCODE-TIMEZONE-ISP-DOMAIN-NETSPEED-AREACODE-WEATHER-MOBILE-ELEVATION-USAGETYPE-SAMPLE.BIN")
> ip2location::get_all("8.8.8.8")
$ip
[1] "8.8.8.8"

$country_short
[1] "US"

$country_long
[1] "United States"

$region
[1] "California"

$city
[1] "Mountain View"

$isp
[1] "Google LLC"

$latitude
[1] 37.40599

$longitude
[1] -122.0785

$domain
[1] "google.com"

$zipcode
[1] "94043"

$timezone
[1] "-07:00"

$netspeed
[1] "T1"

$idd_code
[1] "1"

$area_code
[1] "650"

$weather_code
[1] "USCA0746"

$weather_name
[1] "Mountain View"

$mcc
[1] "-"

$mnc
[1] "-"

$mobile_brand
[1] "-"

$elevation
[1] "32"

$usage_type
[1] "SES"

$address_type
[1] "A"

$category
[1] "IAB19"

$district
[1] "San Diego County"

$asn
[1] "15169"

$as_name
[1] "Google LLC"

2 Call the open() and plot_map() function to plot IP addresses on the map

> ip2location::open("~/IP-COUNTRY-REGION-CITY-LATITUDE-LONGITUDE-ZIPCODE-TIMEZONE-ISP-DOMAIN-NETSPEED-AREACODE-WEATHER-MOBILE-ELEVATION-USAGETYPE-SAMPLE.BIN")
> ip2location::plot_map(c('8.8.8.8','8.8.6.6'))

IP2Location Python Module

This R package leverage the IP2Location Python library for geolocation lookup. Hence, you will need to install the Python and IP2Location module before using this R package. It works in both Windows and Linux environment, and below is the installation command.

Windows

At the command prompt, please run pip install IP2Location to install the module.

Linux

At the terminal, please run pip install IP2Location to install the module.

IP2Location BIN Data File

IP2Location BIN data file contains the geolocation information for the lookup. You can download the data file from the below links

Support

https://www.ip2location.com/

Metadata

Version

8.1.3

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows