This Python-based GUI application allows users to scan IP addresses or hostnames for open TCP ports and retrieve threat intelligence data using the IPInfo.io API. The application identifies over 80 commonly used ports (including Telnet, FTP, SSH, and RPC), providing real-time insight into open and closed ports, as well as metadata such as ASN, ISP organization, geolocation, and timezone.
⚠️ This application uses the IPInfo.io API. You must sign up at ipinfo.io to retrieve a free API token. This token is required to run the scanner.
-
Clone the repository:
git clone https://github.com/stanfordaniya/Port-IP-Info-Scanner.git
-
Navigate to the project directory:
cd Port-IP-Info-Scanner -
Install the required Python dependencies:
pip install -r requirements.txt
-
Create a
.envfile in the root directory and add your IPinfo API token:IPINFO_API_TOKEN=your_token_here -
Run the application:
python netscanner.py
Once launched, the scanner allows you to:
-
Enter an IP Address or Hostname
Use the input field to specify the target address. -
Scan Ports
Click the Scan button to perform a live scan of over 80 well-known TCP ports. -
View Threat Intelligence
IPInfo.io enriches your scan results with metadata about the IP address, including:- ASN and ISP
- City, Region, and Country
- Postal code and Timezone
- Organization
-
Interact with the Results
- Results are color-coded:
- ✅ Green: Port is open
- ❌ Red: Port is closed
- 🟧 Orange: Scan manually stopped
- Use action buttons to:
- Stop the scan
- Save output to a
.txtfile - Copy results to clipboard
- Auto-fill your own public IP address
- Results are color-coded:
- 🧠 IP Intelligence with IPInfo API
- 🎨 Real-time output with color-coded scan results
- 📈 Progress bar for live scan feedback
- 🧵 Threaded scanning to prevent UI freeze
- 💾 Save & export scan results
- 🔍 Auto-fetch public IP address
- ✅ Customizable port range scanning
- ✅ Export to CSV or JSON
- ✅ Improved input validation and error handling
- ✅ Batch IP scanning support using IPInfo’s batch API
- ✅ Lightweight logging and analytics