myip

Crates.iomyip
lib.rsmyip
version0.0.1
sourcesrc
created_at2019-12-19 05:26:35.383331
updated_at2019-12-19 05:26:35.383331
descriptionA simple command line tool to get the ip related information for your host.
homepagehttps://github.com/jazzplato/myip
repositoryhttps://github.com/jazzplato/myip
max_upload_size
id190497
size75,522
Richthofen (jazzplato)

documentation

https://github.com/jazzplato/myip

README

myip

A simple command line tool to get the ip related information for your host.

Usage

Currently myip only serves as a command line interface to ipinfo to retrieve the public ip related information.

To get public ip

myip ip
12.166.238.132

To get your current city

myip ip city
Chicago

To get full information in JSON format

myip
{
  "ip": "12.166.238.132",
  "city": "Chicago",
  "region": "Illinois",
  "country": "US",
  "loc": "41.8500,-87.6500",
  "org": "AS7018 AT&T Services, Inc.",
  "postal": "60666",
  "timezone": "America/Chicago",
  "readme": "https://ipinfo.io/missingauth"
}
Commit count: 5

cargo fmt