Question

Difficulty: EasyUtilizing Command-Line Network Troubleshooting Utilities

A network administrator needs to display a list of all active network connections and listening ports on a local Windows host to inspect running network services. Which command-line utility should the administrator execute?

  1. netstatAnswer
  2. B
    nslookup
  3. C
    tracert
  4. D
    ipconfig

Answer

The administrator should execute the netstat command to view active network connections and listening ports on the local system.
The netstat (network statistics) command-line tool is specifically designed to display active TCP connections, UDP ports, listening sockets, and protocol statistics for the local host.

Step-by-Step Solution

1
Identify the troubleshooting objective
The goal is to inspect open socket connections and listening ports on the local host.
Determining listening ports helps identify running network services and detect unauthorized port usage.
2
Evaluate command-line network tools
The netstat (network statistics) command reports incoming/outgoing TCP/UDP connections, listening ports, and routing tables.
Other tools like nslookup, tracert, and ipconfig serve different functions such as DNS queries, route tracing, and adapter IP configuration.

Key Concept

Utilizing Command-Line Network Troubleshooting Utilities (netstat)
Estimated Time:45s
Rate this question