https://github.com/calinou/ipinfo
CLI utility for retrieving information about IP addresses
https://github.com/calinou/ipinfo
cli command-line ip-address ip-address-geolocation ip-address-lookup ip-address-tool ipinfo
Last synced: about 2 months ago
JSON representation
CLI utility for retrieving information about IP addresses
- Host: GitHub
- URL: https://github.com/calinou/ipinfo
- Owner: Calinou
- License: mit
- Created: 2018-04-28T21:29:35.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-13T01:20:05.000Z (about 2 years ago)
- Last Synced: 2025-03-08T11:34:21.394Z (about 2 months ago)
- Topics: cli, command-line, ip-address, ip-address-geolocation, ip-address-lookup, ip-address-tool, ipinfo
- Language: Go
- Homepage:
- Size: 49.8 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ipinfo
A command-line utility to retrieve your current IP address and related
information, or display information related to an IP address (such as
the country and Internet service provider).## Usage
### Examples
#### Looking up your current IP address
```text
$ ipinfoIP address ... # Results will be based on your IP address
Hostname ...
City ...
Region ...
Country ...
Location ...
Postal code ...
Organization ...
```#### Looking up an arbitrary IP address
```text
$ ipinfo 8.8.8.8IP address 8.8.8.8
Hostname google-public-dns-a.google.com
City Mountain View
Region California
Country US
Location 37.3860,-122.0840
Postal code 94035
Organization AS15169 Google LLC
```### Reference
```text
NAME:
ipinfo - Retrieve information about IP addressesUSAGE:
ipinfo [IP address]VERSION:
0.1.0COMMANDS:
help, h Shows a list of commands or help for one commandGLOBAL OPTIONS:
--help, -h show help
--version, -v print the version
```## License
Copyright © 2018-2020 Hugo Locurcio and contributors
Unless otherwise specified, files in this repository are licensed under the
MIT license, see [LICENSE.md](LICENSE.md) for more information.