Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oldrho/ip2provider
Resolves an IP address to the cloud provider it is hosted on
https://github.com/oldrho/ip2provider
Last synced: 22 days ago
JSON representation
Resolves an IP address to the cloud provider it is hosted on
- Host: GitHub
- URL: https://github.com/oldrho/ip2provider
- Owner: oldrho
- License: gpl-3.0
- Created: 2020-04-27T20:17:43.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-09-18T08:00:51.000Z (3 months ago)
- Last Synced: 2024-09-18T10:30:18.419Z (3 months ago)
- Language: Python
- Size: 6.64 MB
- Stars: 86
- Watchers: 1
- Forks: 17
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hacking-lists - oldrho/ip2provider - Resolves an IP address to the cloud provider it is hosted on (Python)
README
# 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