GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
IP2LOCATION(1) FreeBSD General Commands Manual IP2LOCATION(1)

ip2location - query IP address information from local IP2Location BIN data file

ip2location --data-file [IP2LOCATION BIN DATA PATH] --ip [IP ADDRESS] [OPTIONS]

ip2location read the IP address, IPv4 or IPv6 address format, and get the information from IP2Location BIN data file for display.

User may provide the IP address as standard input or file containing one IP address per line. Several output formats supported such as CSV, TAB and XML.

You can download the IP2Location BIN data file from http://www.ip2location.com or http://lite.ip2location.com

Query an IP address and display the results on screen
Query all IP addresses from an input file and display the results on screen
Query all IP addresses from an input file and display the results in XML format on screen
Query all IP addresses from an input file and output the result to a file in TAB format
Query an IP address and display the country_short result
Query an IP address and display the country_short and city result

-b, --bin-version
Print the IP2Location BIN database version.

-d, --data-file
Specify the path of IP2Location .BIN data file.

-i, --input-file
Specify an input file with IP address list.

-p, --ip
Specify an IP address query (Supported IPv4 and IPv6 address).

-o, --output-file
Specify output file for query results.

-f, --format
Specify output format. Supported formats are:
- CSV (default)
- TAB
- XML

-h, -?, --help
Display this help file

-v, --version
Display the version number

-e, --field
Specify the field to be displayed. Supported values are:
- ip
- country_code
- country_name
- region_name
- city_name
- isp
- latitude
- longitude
- domain
- zip_code
- time_zone
- net_speed
- idd_code
- area_code
- weather_station_code
- weather_station_name
- mcc
- mnc
- mobile_brand
- elevation
- usage_type
- address_type
- category
- district
- asn
- as

-n, -0-heading
Suppress the heading display.

This tool was created by IP2Location (https://www.ip2location.com).

Copyright 2001-2023 IP2Location.com

This tool is licensed under MIT.


Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.