https://github.com/grantshandy/ipgeo
A pure-rust CLI tool that finds the location of IP addresses.
https://github.com/grantshandy/ipgeo
cli command interface ip ipgeolocation line location networking rust
Last synced: about 2 months ago
JSON representation
A pure-rust CLI tool that finds the location of IP addresses.
- Host: GitHub
- URL: https://github.com/grantshandy/ipgeo
- Owner: grantshandy
- License: gpl-3.0
- Created: 2021-01-22T00:22:18.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-10T21:26:59.000Z (almost 3 years ago)
- Last Synced: 2025-03-11T05:48:16.953Z (2 months ago)
- Topics: cli, command, interface, ip, ipgeolocation, line, location, networking, rust
- Language: Rust
- Homepage:
- Size: 93.8 KB
- Stars: 10
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ipgeo
[](https://crates.io/crates/ipgeo)
[](https://docs.rs/ipgeo)
[](https://crates.io/crates/ipgeo)
[](https://aur.archlinux.org/packages/ipgeo-git/)A CLI tool that finds the location of IP addresses. Built to demonstrate my library [`ipgeolocate`](https://github.com/grantshandy/ipgeolocate).
With `ipgeo` you can get the location for an IP address or a DNS address and do lookups for both of them to get data on the ip, latitude, longitude, city, region, country, timezone, method, and a reverse DNS address.
`ipgeo` was made to work within scripts, so you can use the `--silent` tag to print information without any extra fluff so it's easier to parse.
`ipgeo` offers different methods to get information about IP addresses, and each has their own benefits. By default, ip-api.com is used because it gives accurate results and only limits requests by the minute and not by the day, week, or month.
## Installation
Install it by simply doing
```
$ cargo install ipgeo
```## Command Line Arguments
```
ipgeo 0.1.8
Grant Handy
Finds IP InformationUSAGE:
ipgeo [FLAGS] [OPTIONS] [--] [ADDRESS]FLAGS:
-a, --all Print all available information
-h, --help Prints help information
--horizontal Print fields horizontally.
-s, --silent Run without extra output
-V, --version Prints version information
-v, --verbose Run with verbose outputOPTIONS:
-f, --fields ... Choose what fields to print about the IP address. [possible values: ip, latitude, longitude, city, region, country, timezone, method, dns]
-m, --method Choose Geolocation API, if not set it defaults to ipapi. [possible values: ipwhois, ipapi, ipapico, freegeoip]ARGS:
What IP or DNS address to look up, if none are selected then your network IP address will be chosen
```