Localhost port sniffer

Browser-side port scanner. Times fetch() and WebSocket connection attempts against the target and infers open/closed from how fast the error fires. Compare against lsof -i -P -n | grep LISTEN.

Port Method Time (ms) Verdict Detail / Response
How the verdict is decided: Tuning the threshold: on Safari/macOS, refused-TCP errors take ~30–80 ms even on loopback. Chrome is faster (typically <10 ms). Look at the Time column for known-closed ports and set the threshold a bit above the typical refused-error time.

Caveats: