Skip to content
/ geoip Public

Retreive geographical IP information on the command-line.

Notifications You must be signed in to change notification settings

fieu/geoip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation


WebTorrent
geoip

Retreive geographical IP information on the command-line.

Proposal

I wanted an easy way to check IP address info without having to open a browser every time, and since I was in the terminal already, it would be perfect to have it in the terminal.

Disclaimer

The code is poor, and I'm using ipinfo.io to grab the geographical IP address info. Unfourtunately, ipinfo.io only allows up to 1,000 requests per day. I'm working on either building my own solution or finding another database lookup service that has unlimited requests. I'm using this as one of my first Bash projects to get better at Bash and learn as much as I can while building up this piece of software.

Requirements

Install

  • sudo bash -c 'curl -L https://raw.githubusercontent.com/NurdTurd/geoip/master/geoip -o /usr/local/bin/geoip && chmod +x /usr/local/bin/geoip'

Usage

geoip [-h] [IP] -- Get GeoIP information on the command-line.

options:
    -h  show this help text

Example

Get information for the address 52.2.59.254:

[~]$ ./geoip 52.2.59.254
IP: 52.2.59.254
Hostname: ec2-52-2-59-254.compute-1.amazonaws.com
City: Ashburn
Region: Virginia
Country: US
Coordinates: 39.0481,-77.4728
Organization: AS14618 Amazon.com, Inc.

About

Retreive geographical IP information on the command-line.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages