A technician suspects an unauthorised service is listening for inbound connections on a Windows host and wants a single command that lists all active TCP connections together with the local ports in a listening state and the process identifier owning each one. Which command produces this?
- Aarp -a
- Bipconfig /all
- Cnetstat -ano Correct
- Droute print
Why A is wrong: arp -a returns the IP-to-MAC cache for the local segment and reveals nothing about which ports are open or which process is bound to them.
Why B is wrong: ipconfig /all details the interface configuration such as address, mask, gateway, and DHCP, but it does not enumerate sockets, listening ports, or owning processes.
Why C is correct: netstat -ano lists all connections and listening ports (-a), shows addresses numerically without name resolution (-n), and includes the owning process identifier (-o), matching the requirement exactly.
Why D is wrong: route print shows the routing table used to forward packets toward destinations; it lists no connection state and no per-process port ownership.