The Pinging Server is a tool designed to monitor and track the response times of various network endpoints. It performs two main tasks:
-
Ping Monitoring: It continuously pings specified IP addresses or URLs to measure their round-trip time (RTT) in milliseconds. This helps in assessing the latency and availability of the network endpoints.
-
Port Monitoring: It checks the availability of a specific port (default is port 443) on the target IP addresses. This is useful for determining if services such as HTTPS are accessible.
- Real-Time Monitoring: Provides up-to-date RTT measurements for both ping and port checks.
- Concurrent Processing: Uses multithreading to perform multiple checks simultaneously, enhancing performance.
- Logging: Records results and errors in a log file for review and analysis.
- Dynamic Configuration: Configurable through environment variables, allowing for flexible usage in various environments.
-
Configuration: Define the target IP addresses or URLs in the
target.txt
file. Each entry should be on a new line. -
Execution: Run the script to start monitoring. The script will perform both ping and port checks and save the results to
output.txt
. -
Review Results: Check
output.txt
for the results of the monitoring. The file will include RTT measurements for both ping and port checks.
-
Clone the repository:
git clone https://github.com/haitovs/pinging-server-main.git
-
Install dependencies:
npm install
-
Configure environment variables:
- Set up
URL
andURL2
in your environment or in a.env
file, if required by the script.
- Set up
-
Run the script:
npm run build
Contributions are welcome! Please open an issue or submit a pull request if you have improvements or fixes.
This project is licensed under the MIT License.
Feel free to adjust any sections to better fit your project’s specifics!