The short answerMemorize the common well-known ports in small groups by purpose, and pair each insecure protocol with its secure replacement. Learn about twenty ports well rather than every port loosely. Practice by writing the table from memory until you stop looking.
Remote access and file transfer
Start with the protocols you will see in scenarios about administration and moving files.
The key idea is that several old protocols send data in clear text, and the exam asks you to replace them.
- SSH: TCP 22. Secure remote shell, and the base for SFTP and SCP.
- Telnet: TCP 23. Clear text remote shell. Replace it with SSH.
- FTP: TCP 21 for control. Clear text. Replace it with SFTP over SSH.
- RDP: TCP 3389. Remote desktop for Windows.
- TFTP: UDP 69. Simple transfer with no authentication.
Web, mail, and name services
Notice the pattern. The secure version of a mail protocol uses a different port and adds TLS.
- HTTP: TCP 80. HTTPS: TCP 443.
- SMTP: TCP 25 for server-to-server mail.
- POP3: TCP 110. Secure version POP3S on 995.
- IMAP: TCP 143. Secure version IMAPS on 993.
- DNS: port 53, usually UDP and TCP for large responses.
- DHCP: UDP 67 and 68.
- NTP: UDP 123.
Directory, management, and logging
A method that works: group by purpose, make one flash card per group, and quiz yourself in both directions. Say the port and name the protocol, then the reverse.
Also ask in every scenario whether the protocol sends credentials in clear text. If it does, expect the answer to name its encrypted replacement.
- LDAP: 389. LDAPS: 636.
- Kerberos: 88.
- SMB: TCP 445.
- SNMP: UDP 161, with traps on 162.
- Syslog: UDP 514.
- RADIUS: UDP 1812 for authentication and 1813 for accounting.
- TACACS+: TCP 49.
A worked example
A review shows that administrators manage network switches over TCP 23, and backups are copied with a tool using TCP 21. Decide what to change to protect credentials.
- Identify each protocol. TCP 23 is Telnet and TCP 21 is FTP.
- Flag the risk. Both send credentials and data in clear text.
- Choose replacements. Move administration to SSH on TCP 22 and use SFTP, which runs over SSH, for the copies.
- Verify the effect. Both now use one encrypted port, so a firewall rule can allow 22 and block 21 and 23.
Take it with youA port number is a clue to the protocol, and the protocol tells you whether traffic is protected.
Three mistakes to avoid
- Memorizing numbers without the protocol's purpose, so scenario questions stay out of reach.
- Confusing the clear text protocol with its secure replacement.
- Guessing the port for a protocol you only half remember instead of learning a smaller list firmly.
Now try one
Here you read a short log and decide what matters most, which uses the same habit of reading evidence before choosing.
This log is synthetic. 14:02 from 192.0.2.15, two failed logins for sam. 14:03, a successful login for sam from the same address. 14:04, creation of a new local administrator named temp-admin. What is the higher-priority event?
Where this comes from
We wrote this guide from the documents the exam’s owner publishes. Check them for the latest details before you register.
Easy Prep Editorial writes and updates these guides. Easy Prep is independent and is not affiliated with or endorsed by CompTIA.