CompTIA Security+ (SY0-601) — Question 732
A systems administrator is troubleshooting a server's connection to an internal web server. The administrator needs to determine the correct ports to use. Which of the following tools BEST shows which ports on the web server are in a listening state?
Answer options
- A. ipconfig
- B. ssh
- C. ping
- D. netstat
Correct answer: D
Explanation
The correct answer is D, netstat, as it is specifically designed to display the status of network connections and listening ports on a server. Options A (ipconfig) and B (ssh) do not provide information about listening ports, and C (ping) is used to test connectivity rather than port status.