Skip to content

Instantly share code, notes, and snippets.

@kurtis318
Created March 6, 2018 05:13
Show Gist options
  • Save kurtis318/2b60e1a1454e5967b5344080922b1ac3 to your computer and use it in GitHub Desktop.
Save kurtis318/2b60e1a1454e5967b5344080922b1ac3 to your computer and use it in GitHub Desktop.
Windows 10 netstat command tips
REF: http://mikefrobbins.com/2011/03/31/filter-results-by-piping-output-to-the-find-command/
Surface@SURFACEPRO2 C:\Users\Surface
> netstat -an -p TCP | find /I "listening"
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING
TCP 0.0.0.0:515 0.0.0.0:0 LISTENING
TCP 0.0.0.0:3389 0.0.0.0:0 LISTENING
TCP 0.0.0.0:5357 0.0.0.0:0 LISTENING
TCP 0.0.0.0:18800 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49664 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49665 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49666 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49667 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49668 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49669 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49676 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49697 0.0.0.0:0 LISTENING
TCP 0.0.0.0:49698 0.0.0.0:0 LISTENING
TCP 0.0.0.0:51001 0.0.0.0:0 LISTENING
TCP 127.0.0.1:4380 0.0.0.0:0 LISTENING
TCP 127.0.0.1:5901 0.0.0.0:0 LISTENING
TCP 127.0.0.1:5901 0.0.0.0:0 LISTENING
TCP 127.0.0.1:5995 0.0.0.0:0 LISTENING
TCP 127.0.0.1:5995 0.0.0.0:0 LISTENING
TCP 127.0.0.1:8088 0.0.0.0:0 LISTENING
TCP 127.0.0.1:62212 0.0.0.0:0 LISTENING
TCP 192.168.5.210:139 0.0.0.0:0 LISTENING
TCP 192.168.56.1:139 0.0.0.0:0 LISTENING
TCP 192.168.56.1:5040 0.0.0.0:0 LISTENING
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment