Crates.io | myip |
lib.rs | myip |
version | 0.0.1 |
source | src |
created_at | 2019-12-19 05:26:35.383331 |
updated_at | 2019-12-19 05:26:35.383331 |
description | A simple command line tool to get the ip related information for your host. |
homepage | https://github.com/jazzplato/myip |
repository | https://github.com/jazzplato/myip |
max_upload_size | |
id | 190497 |
size | 75,522 |
A simple command line tool to get the ip related information for your host.
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"
}