Safe diagnostic scope
Limited every run to one host, explicit ports and a maximum 100-port range, with a clear authorization reminder.
Day 018 / Python / TCP Diagnostics
A dependency-free Python CLI that checks an explicit, bounded list of TCP ports and reports open, closed, timed-out or failed connections.
Limited every run to one host, explicit ports and a maximum 100-port range, with a clear authorization reminder.
Distinguished accepted, refused, timed-out and operating-system errors instead of reducing every failure to a misleading closed state.
Produced stable terminal and JSON reports with useful exit codes while injecting network dependencies for deterministic tests.
Four explicit connection states
Bounded checks of up to 100 ports
Readable and JSON reports
Eight deterministic network-free tests
socket, argparse, dataclasses, time and json provide the complete dependency-free utility.
Explicit connection attempts and timeouts provide a small first-pass reachability report without vulnerability scanning.
Eight network-free tests cover parsing, bounds, latency, refused connections, timeouts, operating-system errors and output consistency.