RouteDoctor is a small CLI for diagnosing why an HTTP/HTTPS service is unreachable or behaving unexpectedly.
routedoc https://example.comRouteDoctor checks the client-side path from the machine where it runs:
system resolution → TCP → TLS/certificate → HTTP
The probe is bounded and does not claim exhaustive Internet-path analysis.
- whether the hostname resolves from this machine;
- whether a TCP endpoint accepts, refuses, or times out;
- TLS handshake and certificate-verification problems;
- HTTP reachability and status;
- redirects and their sanitized destinations; and
- IPv4/IPv6 differences among the bounded attempts it actually makes.
RouteDoctor does not follow redirects. It records a safe, minimized redirect destination instead. Proxy environment settings are detected and ignored; the probe uses a direct path.
Download the file for your operating system and architecture from the GitHub Releases page. For example, on Linux:
VERSION=0.2.0
curl -LO "https://github.com/Benflex1/RouteDoc/releases/download/v${VERSION}/routedoc_${VERSION}_linux_amd64"
chmod +x "routedoc_${VERSION}_linux_amd64"
sudo install "routedoc_${VERSION}_linux_amd64" /usr/local/bin/routedocFrom the repository root:
go install ./cmd/routedocEnsure your Go binary directory is on PATH.
go build -o routedoc ./cmd/routedocThe URL diagnosis command is the primary interface:
routedoc URL [--verbose] [--json]
On Linux, use local diagnosis to supplement the client probe with evidence from the host's procfs:
routedoc local URL [--verbose] [--json]
It checks listeners on the target TCP port, distinguishes exact, loopback, and wildcard bindings, best-effort identifies the owning process, and reports whether the client TCP connection and HTTP request succeed. For example:
routedoc local http://127.0.0.1:8080/Listener ✓ 127.0.0.1:8080
Process ✓ example-process
TCP ✓ connection accepted
HTTP ✓ 200
Local service is reachable.
When a service is listening only on loopback, RouteDoctor explains that direct
connections through non-loopback local addresses will not reach that listener.
The local command is currently Linux-only because it reads
/proc/net/tcp, /proc/net/tcp6, and, when readable,
/proc/<pid>/fd. It does not use sudo or automatically escalate
privileges. If process ownership cannot be observed, it reports ownership as
unavailable rather than treating that as proof that no process owns the socket.
The normal routedoc URL command remains the cross-platform client-side
diagnosis command.
For saved reports:
routedoc render REPORT.json [--verbose] [--json]
routedoc explain REPORT.json FINDING_ID [--json]
routedoc validate REPORT.json [--json]
routedoc version [--json]
Use --verbose for additional evidence context. Use --json when another tool will consume the result.
0— a relevant branch has an HTTP response;1— rule-produced blockers cover every relevant branch;2— evidence is incomplete or indeterminate;3— invalid invocation or URL; and4— internal RouteDoctor failure.
RouteDoctor diagnoses from the machine where it is run. It intentionally is not traceroute, packet capture, a vulnerability scanner, or an exhaustive network-analysis framework.
Contributors who need the detailed model and design constraints can read docs/architecture.md.
RouteDoctor is licensed under the MIT License.