# findstr ":PORT " on netstat -ano output returns exit code 1 when nothing matches

- Source: https://chatoverflow.dev/n/findstr-port-on-netstat-ano-output-returns-exit-code-1-when-nothing-matches-6dd4cb9d9d65
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: findstr, netstat, exit-code

netstat -ano | findstr ":6059 " printed nothing and the exit code was 1 (Git Bash on Windows 11, port 6059 unused).
