AP Networking • Study Resource

Common Network Ports for AP Networking

Study the most useful network service ports for AP Networking with protocol, transport, purpose, secure variants, and troubleshooting context instead of memorizing isolated numbers.

Independent AP Networking resource • Updated 2026-10-01 • Built for students and teachers
AP Networking Premium: Add guided practice, answer explanations, artifact work, and structured review to the free study system.
Explore Premium Resources
How to learn ports

Learn service intent + transport + direction + evidence—not isolated numbers

A port number becomes useful when you can place it inside a connection. Ask which host is listening, which transport is used, what the service is supposed to do, and what a success or failure would prove. That lets port knowledge transfer into firewall rules, packet captures, server configuration, and troubleshooting questions.

ClientEphemeral source port
TransportTCP or UDP
DestinationKnown service port
ListenerServer/service process
PolicyFirewall/ACL permits or denies

AP exam mental model

Read a flow as a tuple: source → destination → transport → destination port → expected service. “443” alone is incomplete evidence.

Core reference

High-value service ports with exam context

PortTransportServiceRoleUseful exam clue
20/21TCPFTPTraditional file transfer control/data behaviorFTP is not a simple one-connection service; distinguish control from data behavior
22TCPSSH / SFTPEncrypted remote shell; SSH-based file transferIf 22 is denied while 443 works, total routing failure is weak
23TCPTelnetLegacy plaintext terminalSecurity comparison with SSH is often more important than memorizing 23 alone
25TCPSMTPMail transfer/relayDo not automatically equate SMTP relay with end-user authenticated submission
53UDP/TCPDNSName-resolution transactionsA rule allowing only UDP/53 can still create selective DNS failures
67/68UDPDHCPv4Server/client lease exchangeServer uses 67; client uses 68; relay behavior matters across routed boundaries
80TCPHTTPUnencrypted webHTTP success does not prove HTTPS/TLS works
110TCPPOP3Mailbox retrievalContrast with POP3S 995
123UDPNTPTime synchronizationTime errors can cascade into authentication/certificate problems
143TCPIMAPMailbox access/synchronizationContrast with IMAPS 993
161/162UDPSNMPManagement queries / notificationsDistinguish polling/query traffic from traps/notifications
443TCP; UDP for QUIC/HTTP/3HTTPSSecure web/application trafficTransport matters: TCP/443 and UDP/443 are different policy matches
587TCPSMTP submissionClient mail submissionUseful distinction from SMTP relay on 25
993TCPIMAPSIMAP over implicit TLSSecure mailbox synchronization
995TCPPOP3SPOP3 over implicit TLSSecure mailbox retrieval

Swipe horizontally to inspect the full port table.

Ports are transport-specific

TCP/53 and UDP/53 are not the same endpoint

The numeric value 53 exists independently in TCP and UDP. A firewall can permit one and deny the other. The same idea applies to 443: traditional HTTPS commonly uses TCP/443, while HTTP/3 uses QUIC over UDP/443.

ALLOW client-net → dns-server UDP dst 53 DENY client-net → dns-server TCP dst 53 Result: Many ordinary DNS queries succeed. A DNS transaction requiring TCP can fail.
Exam trap: “Port 53 is open” is ambiguous. Ask: TCP, UDP, or both?
Client vs server ports

The destination service port is usually not the client's source port

Client: 10.10.20.45:53184 ↓ TCP Server: 203.0.113.20:443 Source port: 53184 (client-side ephemeral port) Destination port: 443 (HTTPS service)

A packet capture showing 53184 → 443 does not mean the application “uses port 53184” as its well-known service. The client selected an ephemeral source port so return traffic can be associated with the connection.

Direction matters

Read firewall rules from the packet's point of view

ALLOW Source: 10.20.0.0/16 Destination: 172.16.40.20 Protocol: TCP Dst port: 443

This rule permits matching clients to initiate TCP traffic toward the server's HTTPS destination port. It does not mean every service on that server is allowed.

What the rule supportsHTTPS-style TCP/443 access from the stated source range to that destination.
What it does not supportSSH/22, arbitrary UDP traffic, or unrestricted access to the host.
Stateful firewall reasoning

Return traffic does not usually require you to reverse the service port blindly

A stateful firewall can track an established connection. If a client initiates TCP from ephemeral port 53184 to server port 443, the return packets are associated with that state. Students should not automatically create a second broad inbound rule simply because response packets travel in the opposite direction.

Outbound initiation: 10.10.20.45:53184 → 203.0.113.20:443 Return traffic: 203.0.113.20:443 → 10.10.20.45:53184 State table associates both directions with one connection.
DNS

Port 53 is a perfect example of why memorization alone fails

DNS commonly uses both UDP and TCP. A timeout could mean the resolver is unreachable, the service is unavailable, policy blocks the query or response, or the client is using the wrong resolver. A correct DNS answer proves name resolution for that query—not the health of the web application the name points to.

Changed fact: If UDP/53 succeeds but TCP/53 fails, do not conclude “DNS is fully working.” The evidence instead supports transport-specific behavior or policy.
DHCP

Ports 67 and 68 make more sense when attached to roles

DHCPv4 server role: UDP/67 DHCPv4 client role: UDP/68 New client: No normal leased address yet → discovers DHCP service → server/relay path must support the exchange

If DHCP works on the local subnet but not across a routed boundary, the better question is often whether a DHCP relay is configured and forwarding the exchange—not whether UDP/67 suddenly changed meaning.

Web services

80 vs 443 is about service behavior, not just “old web vs new web”

HTTP — TCP/80

Unencrypted HTTP service. A site may redirect clients from HTTP to HTTPS, so a successful TCP/80 connection can still be only the first step.

HTTPS — commonly TCP/443

HTTP protected by TLS. Modern HTTP/3 uses QUIC over UDP/443, so transport must be read with the port.

Test A: TCP/80 → CONNECTED HTTP response: 301 Redirect to https://portal.example/ Test B: TCP/443 → TIMEOUT Conclusion: Web host is reachable on one service. Secure-web path/service still fails.
Remote administration

SSH 22 and Telnet 23 also encode a security decision

★ Protocol Review • Common Network Ports for AP Networking

A five-minute warm-up for Common Network Ports for AP Networking

Tomorrow’s opening question can pick up where this page leaves off: ask students to read the packet evidence, spot the important clue and explain what happened. The 300 Bell Ringers give you short questions and teacher answers you can use without preparing a new starter each morning.

300 AP Networking Bell Ringers
$74.99
BUY TEACHER PACK → See what is included in the 300 Bell Ringers →
Instant Access • Full-Year Teacher Resource

SSH provides encrypted remote administration and is the expected secure choice where supported. Telnet is a legacy plaintext remote-terminal protocol. If an exam scenario asks which service better protects administrative credentials and session contents in transit, the distinction matters more than the adjacent port numbers.

Do not confuse SFTP with FTPS. SFTP is an SSH-based file-transfer protocol associated with SSH/22; it is not simply “FTP with an S added” using FTP's normal control design.
FTP

FTP is the exception that teaches you not to oversimplify ports

Protocol & Service Lab • 120 Missions

Let students try Common Network Ports for AP Networking for themselves

Reading the explanation is a start. In the browser simulator, students work through a broken network, choose what to test and see whether their fix worked. It gives them another chance to use what they learned about Common Network Ports for AP Networking.

AP Networking Browser Troubleshooting Simulator
$29.99
120 Missions • 60 Failure Patterns • Offline Copy
GET THE SIMULATOR → See all 120 missions & features

Traditional FTP separates control and data behavior rather than behaving like a single simple client-to-one-port exchange. That makes FTP a useful reminder that a port table is a starting point, not a complete protocol diagram.

What memorizing 21 helps withRecognizing the FTP control service.
What it does not teachHow the separate data connection is established in active/passive behavior.
Email

Mail has separate transfer, submission, and mailbox-access roles

SMTP 25

Commonly associated with mail transfer/relay between mail systems.

Submission 587

Commonly used for authenticated client message submission.

Protocol Exam Practice • Common Network Ports Ap Networking

Check whether Common Network Ports for AP Networking has really stuck

Once students have worked through this topic, give them questions mixed in with the rest of the course. The Exam Prep Vault includes practice exams, multiple-choice questions and artifact labs so they cannot rely on a chapter heading to tell them what to do.

AP Networking Complete Exam Prep Vault
$39.99
GET THE EXAM PREP VAULT → See the Exam Prep Vault contents →
4 Practice Exams • 320 MCQs • 60 Artifact Labs

IMAP/POP

Mailbox access is a different function: IMAP 143 / IMAPS 993; POP3 110 / POP3S 995.

Knowing these roles prevents a common error: treating “email” as one service with one port.

NTP and SNMP

Management ports can explain failures that appear unrelated

NTP — UDP/123

Time synchronization. Incorrect time can contribute to certificate validation and authentication problems even when routing is healthy.

Premium Evidence-Grading Copilot

Spend less time marking explanations about Common Network Ports for AP Networking

When students explain their answer, it takes more than a right-or-wrong check to see what they understand. The Grading Copilot helps you review how they used the clues, where their explanation falls short and what feedback to give next. You make the final grading decision.

AP Networking Artifact Analysis Grading Copilot
$49.99
8 Criteria • 5 Task Modes • Offline Premium Copy
GET THE GRADING COPILOT → See the free Copilot preview

SNMP — commonly UDP/161 and 162

161 is commonly associated with management queries; 162 with traps/notifications. Direction and role matter when interpreting policy.

Troubleshooting signatures

Port-specific success can falsify a total-path hypothesis

EvidenceStronger interpretationWhat it does NOT prove
Ping succeeds; TCP/22 failsSome IP/ICMP path exists; SSH path/service/policy needs inspectionThat the SSH daemon is definitely down
TCP/443 succeeds; TCP/22 failsTotal routing failure is weak; service-specific difference existsThat a firewall is definitely the cause
TCP/80 works; TCP/443 times outHost/path supports one web service but secure-web path differsThat DNS is broken
UDP/53 works; TCP/53 failsTransport-specific DNS policy/path is plausibleThat all DNS behavior is healthy
DNS resolves; TCP/443 failsMove beyond name resolutionThat the destination application is down

Swipe horizontally to compare service-failure signatures.

Packet artifact drill

Read the five-tuple before naming the service

NEW • COMPLETE 180-DAY TEACHER CURRICULUM

Teach Common Network Ports for AP Networking as part of a planned school year

This page gives you one topic. The 180-Day Teacher Curriculum puts it into a full course plan, with daily teaching notes, student activities and checks for understanding. Use it when you need to know what comes before this lesson and what to teach next.

AP Networking Complete 180-Day Teacher Curriculum
$199.99
180 Lessons • 180 Daily Simulators • 36 Teaching Weeks
GET THE 180-DAY CURRICULUM → See 3 free curriculum examples
10.20.5.44:49712 → 172.16.8.10:443 TCP SYN 172.16.8.10:443 → 10.20.5.44:49712 TCP SYN,ACK 10.20.5.44:49712 → 172.16.8.10:443 TCP ACK

What this supports: a TCP connection was established to destination port 443. The server-side port is consistent with HTTPS, but the handshake alone does not prove a valid TLS exchange or successful HTTP response.

ProvesTCP reachability/listener response on the tested tuple.
Does not proveTLS certificate validity, HTTP authorization, or application health.
Firewall artifact drill

Least privilege: permit only the service the requirement actually names

Requirement: Student VLAN may access the grade portal securely. No remote administration from Student VLAN. Candidate rules: A. ALLOW Student → GradeServer TCP/443 B. ALLOW Student → GradeServer ANY/ANY C. ALLOW Student → GradeServer TCP/22,443

Best fit: Rule A. It satisfies secure web access while avoiding unnecessary SSH or arbitrary service access.

Exam transfer: The “trusted server” is not a reason to permit every destination port. Scope policy to the stated application requirement.
Changed-fact reasoning

One changed fact should change the port diagnosis

Initial evidenceChanged factNew reasoning
TCP/443 timeoutTCP/22 to same host succeedsBasic route to host exists; inspect 443 listener/policy/service path
DNS intermittentUDP/53 succeeds, TCP/53 consistently deniedTransport-specific DNS filtering becomes strong
HTTP worksHTTPS handshake reaches server but certificate failsMove beyond port reachability to TLS validation
DHCP fails across VLANsSame-VLAN clients obtain leasesDHCP server works locally; relay/routed boundary becomes stronger
SSH failsServer shows no listener on TCP/22Service configuration becomes stronger than network filtering

Swipe horizontally to practice changed-fact reasoning.

Common exam traps

Correct these port misconceptions

  • “A port number identifies an application by itself.” Transport, direction, endpoint, and context matter.
  • “If ping works, every TCP port should work.” ICMP success does not prove a service listener or firewall permission.
  • “443 always means TCP.” HTTP/3 uses QUIC over UDP/443.
  • “DNS is UDP only.” DNS uses both UDP and TCP.
  • “The client also uses source port 443 for HTTPS.” Clients commonly use an ephemeral source port.
  • “Email uses one port.” Relay, submission, and mailbox access are different functions.
  • “SFTP is secure FTP on ports 20/21.” SFTP runs over SSH.
  • “A successful TCP handshake proves the application works.” It proves a lower-layer connection checkpoint, not the full application exchange.
Exam framework

Use SERVICE → TRANSPORT → DIRECTION → PORT → EVIDENCE → VERIFY

SERVICE: What function is required—DNS, HTTPS, SSH, DHCP, mail?
TRANSPORT: TCP, UDP, or potentially both?
DIRECTION: Which host initiates, and which host listens?
PORT: Which destination port should match the service?
EVIDENCE: Does the artifact show timeout, refusal, handshake, response, or only generic reachability?
VERIFY: After a correction, retest the exact service while preserving least privilege.
Free digital flashcards

24 interactive port-reasoning flashcards

Use these to learn service roles and troubleshooting logic—not just number pairs.

All port cards
Click or press Enter/Space to reveal.
Explain the transport and role before moving on.
0 seen•24 cards
Continue studying

Connect ports to protocols, firewalls, and evidence