netstat query

trojan81
trojan81 used Ask the Experts™
on
Experts,

Within a command prompt on a windows server 2012 what is the NETSTAT syntax to query for port 8080 that is LISTENING?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
David FavorFractional CTO
Distinguished Expert 2018

Commented:
Likely this will be sufficient...

netstat -a -b

Open in new window

Author

Commented:
Let's say I want to only filter it down to two criteria's
1) port 8080
2) Listening
How can I add a string for both?  I can do one with
netstat -a -n -o | FINDSTR LISTENING  
but I want to include the second criteria
Commented:
This:
netstat -aon | find ":8080" | find "LISTENING"

Open in new window

Proof of concept -Capture.PNG-saige-

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial