Skip to content

Resolves an IP address to the cloud provider it is hosted on

License

Notifications You must be signed in to change notification settings

oldrho/ip2provider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ip2provider

Check which cloud provider is hosting a particular IP address. Some providers will also have service and region listed

./ip2provider.py [flags] [ip]

Installation

git clone https://github.com/oldrho/ip2provider.git
cd ip2provider
pip3 install -r requirements.txt

Usage

Arguments

  • ip: One or more comma-separated IP addresses

Flags

  • -o, --output: Select an output format (default text)
    • text will output one result per line
    • json will output a JSON array
    • raw will output all results in a JSON array without filtering
  • --update-lists: Update the route lists for each provider

Piped

cat ip_addresses.txt | ./ip2provider.py

One IP address per line

Notes

Supported Providers

  • Amazon Web Services (AWS)
  • Microsoft Azure (Public and Government Clouds)
  • Google Cloud Platform (GCP)
  • IBM/SoftLayer Cloud
  • Oracle Cloud
  • Alibaba Cloud
  • Linode
  • DigitalOcean
  • RackSpace
  • Cloudspace

About

Resolves an IP address to the cloud provider it is hosted on

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages