Which Ports Are Being Utilized for TCP Listening? | Exam 220-1102: CompTIA A+ Core 2

Determining TCP Listening Ports Using CLI

Question

A technician is using a CLI to perform tasks on a Windows OS.

The technician needs to determine which ports are being utilized for TCP listening.

Which of the following commands should the technician use?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

A.

The command that the technician should use to determine which ports are being utilized for TCP listening on a Windows OS is "netstat."

Netstat (network statistics) is a command-line tool used for monitoring network connections and network statistics. It displays active TCP connections, ports on which the computer is listening, Ethernet statistics, the IP routing table, and IPv4/IPv6 statistics.

To use the netstat command to determine which ports are being utilized for TCP listening, the technician can follow these steps:

  1. Open the command prompt: Press the Windows key + R on your keyboard, type "cmd" in the Run box, and press Enter.

  2. Type "netstat -an | find /i "listening"" and press Enter.

  3. This command will display a list of all the ports that are currently in use and listening for incoming connections.

The "-an" option displays all active connections and listening ports. The "find /i "listening"" option filters the results to show only the ports that are currently listening.

Therefore, the correct answer is A. netstat.