Skip to content
/ myip Public

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

License

Notifications You must be signed in to change notification settings

jazzplato/myip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
}

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages