FTP Port and Wireshark Filtering
Common Network Protocols and Port Numbers
This guide covers the essential application‑layer protocols, their default port numbers, transport‑layer characteristics (TCP or UDP), and whether traffic is clear‑text or encrypted. Every protocol discussed appears in a sample packet capture and is examined with Wireshark.
📡 Protocol vs. Port Filtering in Wireshark
When analyzing traffic, filtering by protocol name (e.g., ftp) shows only packets that carry that protocol’s payload — no TCP handshake, acknowledgments, or resets. Filtering by port number (e.g., tcp.port == 21) includes all TCP packets using that port, such as the three‑way handshake, so it gives a complete conversation view. For most analysis, filtering by port number is preferred because it reveals the full TCP session (or UDP exchange).
⏱️ Displaying Time of Day
To make merged captures (collected from different time periods) easier to navigate, set Wireshark to show Time of Day instead of the default relative time. This is done via View → Time Display Format → Time of Day.
🗂️ File Transfer Protocols
FTP – File Transfer Protocol (Port 21)
Transport: TCP
Security: Clear‑text (username, password, data visible)
Ports: Control on port 21, data dynamically assigned (often port 20 or negotiated within control traffic)
FTP is a TCP‑based protocol used to transfer files between a client and server. The control connection (port 21) handles login and commands, while data moves over a separate connection.
Filtering on tcp.port == 21 shows the full TCP setup (SYN, SYN‑ACK, ACK) and all subsequent packets. The login and password appear in plain text inside the packets. The capture also includes a port scan (many SYN packets with resets) as part of network reconnaissance.
TFTP – Trivial File Transfer Protocol (Port 69)
Transport: UDP
Security: Clear‑text
Ports: Initial request on port 69; data then uses a higher, ephemeral port
TFTP is a simple, UDP‑based file transfer protocol. It lacks the overhead of TCP (no handshake) and is often used for booting network devices or transferring configuration files.
In the capture, a read request for rfc1350.txt is sent to port 69. After the request, the data exchange moves to a different port pair (client and server use high‑numbered ports).
SMB – Server Message Block (Port 445)
Transport: TCP
Security: Versions vary (SMB 2.0 in the capture)
Port: 445 (used directly over TCP, replacing older NetBIOS‑over‑TCP)
SMB is a file‑sharing protocol predominant in Windows environments. It allows clients to access shared folders, printers, and other resources on a network.
Filtering on tcp.port == 445 shows connections where clients log in, manipulate files, and upload/download data. The capture includes SMB version negotiation and file operations.
📧 Email Protocols
SMTP – Simple Mail Transfer Protocol (Port 25, also 587)
Transport: TCP
Security: Can be clear‑text (port 25) or encrypted via STARTTLS (port 25 or 587)
Purpose: Sending email from a client to a server or between servers
SMTP is used to send email. The client issues commands like
HELO,MAIL FROM,RCPT TO, andDATAbefore the server acknowledges receipt.
In the capture:
Clear‑text SMTP: the email body, sender, and recipient are fully readable using
Follow TCP Stream.Encrypted SMTP: after the initial SMTP greeting, a
STARTTLScommand initiates a TLS handshake; subsequent data is encrypted and appears as garbage in ASCII view.
Key ports: 25 (plain/STARTTLS), 587 (submission, often requires STARTTLS)
POP3 – Post Office Protocol v3 (Port 110, secure: 995)
Transport: TCP
Security: Clear‑text on port 110; encrypted with TLS on port 995
Purpose: Retrieving email from a server to a client (usually downloads and deletes from server)
POP3 is used to receive email. Logins and messages are transmitted in plain text unless TLS is used.
Using Follow TCP Stream on a POP3 session reveals the username, password, and the email body in clear text. The secure version, POP3S, uses port 995 and encrypts all data.
IMAP – Internet Message Access Protocol (Port 143, secure: 993)
Transport: TCP
Security: Clear‑text on port 143; encrypted with TLS on port 993
Purpose: Retrieving and managing email on a server (messages stay on server)
IMAP allows a client to access and manage emails directly on the server, keeping them synchronized across devices.
The capture shows IMAP traffic; clear‑text versions display login and folder information. The secure version (IMAPS) on port 993 remains encrypted.
🌐 Remote Access Protocols
SSH – Secure Shell (Port 22)
Transport: TCP
Security: Encrypted (all traffic)
Purpose: Secure remote login and command execution
SSH replaces older clear‑text remote access protocols. It encrypts the entire session, including authentication and commands.
In the capture, an SSH handshake occurs (SYN‑SYN/ACK), followed by a version exchange (e.g., SSH-2.0-OpenSSH_5.1p1 Debian-5ubuntu1). Because the data is encrypted, Wireshark cannot show the content after the handshake.
Telnet (Port 23)
Transport: TCP
Security: Clear‑text (all traffic, including login credentials)
Purpose: Remote terminal access (legacy, insecure)
Telnet sends every keystroke and server response in plain text. This makes it easy to read on the wire but extremely insecure.
Filtering on tcp.port == 23 shows the TCP handshake, then Telnet data packets. Using Follow TCP Stream reveals the entire session: the login (msfadmin), password, and commands (e.g., exit) are visible as ASCII. The server echoes each character back, so the stream shows both client‑sent (red) and server‑echoed (blue) data.
Why Telnet is obsolete: All data is transmitted unencrypted. SSH has replaced it for secure remote administration.
📡 Network Services
DNS – Domain Name System (Port 53)
Transport: Primarily UDP (TCP is used for zone transfers or large responses)
Security: Generally unencrypted (DNS over TLS/HTTPS uses different ports)
Purpose: Resolves human‑readable domain names to IP addresses
DNS is the phone book of the internet. When you type a domain into a browser, DNS translates it into an IP address.
Filtering on udp.port == 53 shows DNS queries and responses. In the capture, a query is made and the response arrives 34 ms later. Because DNS usually runs over UDP, there is no three‑way handshake.
Important: Filtering by tcp.port == 53 would only show TCP‑based DNS traffic (zone transfers), not the common query/response.
DHCP – Dynamic Host Configuration Protocol (Ports 67 and 68)
Transport: UDP
Security: No encryption (can be authenticated with DHCPv6 extensions)
Purpose: Automatically assigns IP addresses, subnet masks, gateways, DNS servers, and other configuration to hosts
DHCP uses a four‑step process: Discover (client broadcasts), Offer (server responds with an IP offer), Request (client asks for that address), Acknowledge (server confirms). Servers use port 67, clients use port 68.
Filtering on dhcp (protocol name) shows these four packets. Each packet contains options: lease time, subnet mask, DNS server, and sometimes a TFTP server address for booting.
NTP – Network Time Protocol (Port 123)
Transport: UDP
Security: Can be secured with NTPv4 authentication or NTS
Purpose: Synchronizes device clocks over a network
NTP allows devices to query authoritative time servers to keep accurate time. All packets use UDP port 123 in both directions.
Applying the filter udp.port == 123 or just ntp shows the exchange.
SNMP – Simple Network Management Protocol (Port 161)
Transport: UDP
Security: v1/v2c use community strings in clear text; v3 supports encryption
Purpose: Monitors and manages network devices (routers, switches, servers) by querying MIB variables
SNMP enables centralized network management. A manager sends
GetRequestandGetNextRequestmessages to agents on port 161; agents reply withGetResponse.
Filtering on udp.port == 161 shows SNMP queries and responses. The capture includes GetResponse transactions.
LDAP – Lightweight Directory Access Protocol (Port 389)
Transport: TCP
Security: Can be plain (389) or encrypted with LDAPS (636)
Purpose: Accesses and maintains directory information (e.g., user authentication, phone books)
LDAP is a vendor‑neutral protocol for querying and modifying directory services (like Active Directory). It uses a client‑server model with
Bind,Search, andUnbindoperations.
Filtering on tcp.port == 389 shows a simple LDAP session: a bind request for login, successful bind response, then a search for the entire subtree, followed by unbind.
🌍 Web Protocols
HTTP – Hypertext Transfer Protocol (Port 80)
Transport: TCP
Security: Clear‑text
Purpose: Transfers web pages, files, and API data
HTTP sends requests (GET, POST, etc.) and responses entirely in plain text. Headers, cookies, and body are visible.
Filtering on tcp.port == 80 shows HTTP traffic. A GET / HTTP/1.0 request is followed by a 200 OK response. Using Follow TCP Stream reveals the server banner (Apache 2.2.8, powered by PHP), plus any content such as text or images.
HTTPS – HTTP Secure (Port 443)
Transport: TCP (or UDP for QUIC/HTTP/3)
Security: Encrypted (TLS/SSL)
Purpose: Secure web traffic
HTTPS encrypts the entire application‑layer data. Only the TLS handshake (Client Hello, Server Hello) is visible in clear text, including the Server Name Indication (SNI) which reveals the requested hostname.
Filtering on tcp.port == 443 shows the TCP handshake and TLS negotiation. After the handshake, all data is encrypted. QUIC (HTTP/3) uses UDP port 443 instead.
Key difference: Port 80 is unencrypted; port 443 is encrypted.
📋 Summary Table of Common Protocols
Protocol | Port(s) | Transport | Security |
|---|---|---|---|
FTP | 21 (ctrl), 20 (data) | TCP | Clear‑text |
SSH | 22 | TCP | Encrypted |
Telnet | 23 | TCP | Clear‑text |
SMTP | 25, 587 | TCP | Clear or TLS |
DNS | 53 | UDP (mostly) | Clear (usually) |
DHCP | 67 server, 68 client | UDP | Clear |
TFTP | 69 | UDP | Clear |
HTTP | 80 | TCP | Clear‑text |
POP3 | 110, 995 (TLS) | TCP | Clear or TLS |
NTP | 123 | UDP | Clear or auth |
IMAP | 143, 993 (TLS) | TCP | Clear or TLS |
SNMP | 161 | UDP | v1/v2c clear, v3 encrypted |
LDAP | 389, 636 (TLS) | TCP | Clear or TLS |
HTTPS | 443 (TCP/UDP) | TCP/UDP | Encrypted (TLS) |
SMB | 445 | TCP | Varies (SMB 2.0+ can encrypt) |
These protocols form the backbone of modern networking. Knowing their port numbers, transport methods, and security characteristics is essential for network administration, troubleshooting, and cybersecurity analysis.

Ask anything
We've read this whole study set, so questions about it get the best answers.