Network Doctor: a TUI that names the layer where a connection fails
Network Doctor is a cross-platform network troubleshooting TUI that turns interface, DNS, TCP, TLS, HTTP, proxy, and path-MTU checks into one plain-English diagnosis.
At a glance
- What is it?
- Network Doctor is a Go TUI from heymaikol that runs interface, DNS, TCP, TLS, HTTP, proxy and path-MTU probes as a dependency graph and prints one plain-English verdict. Use it when ping and curl output leaves you guessing, not as a replacement for packet capture.
- Who is it for?
- Adopt Network Doctor if you debug other people's connections from a terminal and want the failing layer named before you open Wireshark. Skip it if you need continuous monitoring with alerting, or if your problem is application-level behaviour that a single request cannot expose.
- Can I use it commercially?
- Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 2 days ago.
- What is it written in?
- Mainly Go, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- heymaikol/network-doctor449 ★ · +65
| Repository | 2026-09-21 | 2026-11-25 |
|---|---|---|
| heymaikol/network-doctor | 384 | 449 |
65 Stars in the last 65 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
The question Network Doctor answers, and who is asking it
Most network debugging starts with a pile of tools. You ping, you dig, you curl -v, you squint at the output, and you try to remember which of those results is the one that matters. Network Doctor inverts that. It runs a fixed set of probes and leads with a verdict: is the problem on my network, along the path, or at the service? The README states that instead of handing you a wall of ping, dig and curl output, it answers that question directly.
The audience is narrow and specific. It is for the sysadmin on a support call, the developer whose CI runner cannot reach a registry, and the person who has to explain to someone else why a hostname will not resolve. The interactive TUI is the primary interface, so a terminal is assumed. The README also positions it for automation through --json and exit codes, which widens the audience to script authors who want a structured verdict rather than scraped text.
The worked example in the README is telling: an office printer hostname that no longer resolves. The DNS row fails, every check that depended on it is skipped rather than guessed at, and the verdict names the missing DNS record instead of blaming the printer. That skip behaviour is the design decision worth noticing. A tool that reports every downstream probe as a failure would send you chasing TCP and TLS problems that do not exist.
A dependency graph, not a checklist
The mechanism the README describes is a dependency graph with independent branches. Probes are grouped into four branches: Local (interface, Wi-Fi network), Egress (TCP egress, QUIC on UDP 443, environment proxy), Naming (DNS, public DNS, encrypted DoH/DoT), and Target path (TCP, path MTU, TLS, HTTP, HTTPS, SSH/SMTP banner). Direct egress, QUIC, proxy egress, public and encrypted DNS, and the selected target path each run on their own, so an unrelated failure never hides a working one.
Each row lands in one of five states: Pass, Warn, Fail, Skip, and N/A. Warn never counts as a failure, which matters when you are reading a verdict at a glance. The unprivileged path-MTU check hangs off the connect rather than running as its own branch, which is a sensible ordering: there is no point probing MTU if the TCP handshake never completed.
The port you pass selects the protocol rows. netdoc github.com:22 runs the SSH banner check instead of the HTTP checks, because the target port determines what the target-path branch does. That is a small piece of interface design with a large effect on output relevance.
What the README does not document is the timeout budget per probe or the retry policy. For a tool whose value is a fast verdict, the total wall-clock time of a run is a number a user would want, and the README is silent on it.
Installing netdoc and running a first diagnosis
The project is named network-doctor; the installed binary is netdoc. On macOS and Linux, the README gives a Homebrew formula:
brew install network-doctorThat formula is in Homebrew Core and bottled for both platforms, so brew upgrade picks up releases like any other formula. It installs netdoc alone. The README notes that netdoc-sim, the simulator behind Challenge Mode, comes only with the Linux packages.
On Windows, the README documents a Scoop bucket:
scoop bucket add heymaikol https://github.com/heymaikol/scoop-bucket
scoop install network-doctorA release reaches the bucket as soon as it publishes, so scoop update network-doctor behaves like any other app. For Linux distributions outside Fedora, the README points at prebuilt packages from the latest release:
sudo apt install ./network-doctor_X.Y.Z_linux_amd64.deb
sudo dnf install ./network-doctor_X.Y.Z_linux_amd64.rpm
sudo apk add --allow-untrusted ./network-doctor_X.Y.Z_linux_amd64.apkThose downloaded packages are standalone. The README is explicit that dnf and apt will not pull the next version for you, and that only the COPR repository upgrades normally. If you install from a downloaded package, upgrading is a manual re-download.
If you have Go 1.27 or newer, or want a prebuilt binary, the README offers both:
go install github.com/heymaikol/network-doctor/cmd/netdoc@latest
netdoc --versionReleases carry a signed attestation binding each artifact to the workflow run that built it; the README points to docs/installation.md for verifying one.
For a first real run, the quick start gives five forms. A bare invocation checks local interface, egress, proxy, public DNS and Wi-Fi. Passing a host runs DNS, TCP, TLS and HTTP diagnosis of that target. Passing host:port selects the protocol rows from the port. Two flags change the mode:
netdoc github.com
netdoc github.com:22
netdoc --watch host
netdoc --json hostA finished run leads with the verdict, the fix, the tool worth reaching for next, and the one line of evidence the verdict rests on, above the checks that produced them. Select any other row for its own evidence and fix, press e for the causal explanation, and ? for every shortcut. Run it against a host you already understand before you trust it on one you do not.
Where the verdict stops short, and why that is the honest answer
The README makes a claim that reads as a limitation rather than a feature: the probes say so when the evidence stops short of naming a failure. That is the correct behaviour and also the thing that will frustrate people who want a binary answer. A Warn state, which never counts as a failure, means you still have to decide whether it matters. The tool narrows the search space; it does not close it.
The bigger boundary is scope. Network Doctor diagnoses a connection, not a service. If the TCP handshake completes, TLS negotiates and HTTP returns 200, the tool has done its job and has nothing more to say. A misconfigured reverse proxy returning the wrong upstream, a DNS record that resolves to the right address but the wrong region, an application that fails only under load: none of these are visible to a single-shot probe run. Reach for packet capture or the service's own logs at that point.
The path-MTU check is unprivileged, which the README presents as a benefit. It also means the check cannot do everything a privileged probe could. The README does not document the exact method beyond pointing at docs/reference.md, so anyone who needs to know precisely what the bounded probe sends should read that file rather than assume it matches ping -M do.
Finally, --watch keeps a bounded incident timeline around intermittent failures. Bounded is the operative word. This is a troubleshooting aid for a session, not a monitoring system with retention, alerting or a queryable history.
netdoc against mtr and dig, and when the TUI is the wrong tool
The obvious alternative for path diagnosis is mtr, which combines traceroute and ping into a continuously updating per-hop view. The difference in approach is fundamental. mtr measures the path hop by hop and leaves interpretation to you. Network Doctor does not walk the path at all in its default branches; it probes endpoints and layers, then reasons about which layer failed. If your problem is a specific congested hop or asymmetric routing, mtr shows you the hop and Network Doctor will not.
The other comparison is the toolset you already have. dig, curl and openssl s_client each answer one question precisely and print raw output. Network Doctor's value is the aggregation and the dependency reasoning, not any individual probe. If you already know which layer is broken, the single-purpose tool is faster and gives you more detail. Network Doctor earns its place when you do not know which layer is broken.
Two more cases where it is the wrong tool. First, anything requiring root-level visibility: the README states the tool needs no root access and uses unprivileged sockets, so it is deliberately not the instrument for raw socket inspection. Second, reproducible automation on Linux installed from a downloaded package. Because those packages do not self-upgrade, a fleet pinned to a downloaded .deb will drift, and the README says only COPR upgrades normally.
Maintenance, packaging and the Apache-2.0 terms
The repository is not archived and the last push was on 2026-09-17. The release cadence visible in the tags is tight: v1.17.0 on 2026-09-13, v1.17.1 and v1.17.2 on 2026-09-15. Three releases in three days suggests active bug-fix traffic rather than a stable plateau, which cuts both ways. You get fixes quickly, and you also get churn.
The upgrade story differs by platform, and that is the real maintenance cost. Homebrew and Scoop users get upgrades through the package manager. Fedora Rawhide users get them through COPR. Everyone who installs a downloaded .deb, .rpm or .apk has to fetch the next release by hand, because the README states those packages are standalone. For a single workstation that is a minor chore. For a fleet it is a reason to prefer COPR, Homebrew or Scoop, or to script the download against the GitHub releases API.
The licence is Apache-2.0, and the repository carries a NOTICE file alongside LICENSE. Apache-2.0 permits commercial and internal use and includes an explicit patent grant, with the usual obligations around preserving notices and stating changes. If you redistribute Network Doctor inside a product, read the NOTICE file and the licence text rather than relying on a summary. This is not legal advice; the LICENSE and NOTICE files in the repository are the authoritative documents.
The Docker image is worth understanding before you adopt it. The Dockerfile comment states the image is an execution layer and nothing else: it ships the same netdoc-sim the Linux packages do, with no container simulation backend and no reduced-fidelity mode. macOS and Windows get a Linux kernel from Docker Desktop or Podman Machine, and the real simulator runs on it. Both binaries are built from one source tree with one version string. That is a clean design, and it also means the image is not a general-purpose way to run netdoc on a non-Linux host.
Editorial conclusion
Adopt Network Doctor if you debug other people's connections from a terminal and want the failing layer named before you open Wireshark. Skip it if you need continuous monitoring with alerting, or if your problem is application-level behaviour that a single request cannot expose. Before rolling it out, run netdoc --version against a host you already understand, confirm the JSON schema in schema/ matches what your scripts expect, and check whether your platform gets netdoc-sim from a Linux package or from the Docker image.
Frequently asked questions
What is Network Doctor?
Network Doctor is a cross-platform network troubleshooting TUI written in Go. It turns interface, DNS, TCP, TLS, HTTP, proxy and path-MTU checks into one plain-English diagnosis, answering whether the problem is on your network, along the path, or at the service.
What does Network Doctor mean in this context?
Here it is the name of the project heymaikol/network-doctor, not a medical or insurance term. The installed binary is called netdoc, and the project is documented at networkdoctor.dev.
How do I install Network Doctor on macOS or Linux?
The README gives the Homebrew Core formula, installed with brew install network-doctor. It is bottled for both platforms, so brew upgrade picks up releases like any other formula, and it installs netdoc alone.
Does Network Doctor need root access?
No. The README states it needs no root access, and that even the path-MTU check and LAN map use unprivileged sockets and bounded probes.
Can Network Doctor output JSON for scripts?
Yes. The README documents netdoc --json host as producing a structured report for scripts or bug reports, alongside stable JSON and exit codes for automation.
Does Network Doctor work on Windows?
Yes. The README documents a Scoop bucket install for Windows and states the same diagnosis engine supports Linux, macOS and Windows, with native packages and prebuilt binaries. Windows releases ship as a .zip.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/heymaikol-network-doctor)Star history chart for your README
[](https://hysenlabs.com/projects/heymaikol-network-doctor)Was this useful?