A simple and efficient Python script that reads a list of IP addresses or domain names from a text file and pings them to check if they are UP or DOWN.
The script automatically detects your Operating System (Windows, macOS, or Linux) and adjusts the ping command accordingly, so it works anywhere!
IpReads.py- The main Python script that performs the pinging.ips.txt- A text file where you store the list of IPs/domains you want to check.Readme.md- This documentation file.
- Python 3.x installed on your computer.
- Open the
ips.txtfile and add the IP addresses or domain names you want to ping. Put one entry per line. (Example:8.8.8.8orgoogle.com) - Open your terminal or command prompt and navigate to the folder where these files are saved.
- Run the script using the following command:
python IpReads.py