Common Ports & Protocols
The well-known TCP/UDP ports every IT and security pro should know, grouped by service. π marks encrypted protocols.
Last updated
Free, no signup Β· 1 page Β· the 60 essentials of 200 Β· 190 KB
Most-tested ports for A+, Network+ and Security+
The subset that keeps reappearing in CompTIA questions β with the distinction each one is actually testing. Learn these first, then work outward through the full tables below.
Secure vs insecure pairs
Find a port, or browse all 200
Know what you are after? Type a port number, a service name, or a keyword like 3389, ssh or database. Just learning? Ignore the box and work down the categories below β every port is on this page.
200 ports across 10 categories
Web42
| 70 | TCP | GOPHER | Retrieves hierarchical documents and menus from legacy Gopher servers. |
| 80 | TCP | HTTP | Serves unencrypted web pages and HTTP application traffic. |
| 81 | TCP | HTTP Alternate | Commonly hosts an alternate plaintext HTTP website or administrative interface. |
| 443 | TCP | HTTPSπ | Serves HTTP application traffic encrypted with TLS. |
| 591 | TCP | FileMaker HTTP Alternate | Provides the registered FileMaker alternate HTTP service. |
| 631 | TCP | IPP | Submits and manages print jobs using an HTTP-based printing protocol. |
| 901 | TCP | SWAT | Provides the legacy web administration interface for configuring Samba services. |
| 2082 | TCP | cPanel HTTP | Provides the cPanel web hosting control panel over plaintext HTTP. |
| 2083 | TCP | cPanel HTTPSπ | Provides the cPanel web hosting control panel over TLS-protected HTTPS. |
| 2086 | TCP | WHM HTTP | Provides the WebHost Manager server administration interface over plaintext HTTP. |
| 2087 | TCP | WHM HTTPSπ | Provides the WebHost Manager server administration interface over TLS-protected HTTPS. |
| 2095 | TCP | cPanel Webmail HTTP | Provides browser-based cPanel webmail access over plaintext HTTP. |
| 2096 | TCP | cPanel Webmail HTTPSπ | Provides browser-based cPanel webmail access over TLS-protected HTTPS. |
| 3000 | TCP | Grafana | Provides the default Grafana web interface and HTTP API. |
| 3128 | TCP | Squid Proxy | Accepts client web traffic through the commonly configured Squid caching HTTP proxy port. |
| 4443 | TCP | HTTPS Alternate 4443π | Commonly hosts an HTTPS service on an alternate TLS-enabled web port. |
| 5000 | TCP | Synology DSM HTTP | Provides the default plaintext web management interface for Synology DiskStation Manager. |
| 5001 | TCP | Synology DSM HTTPSπ | Provides the default TLS-protected web management interface for Synology DiskStation Manager. |
| 5601 | TCP | Kibana | Provides the default Kibana web interface for searching and visualizing Elastic data. |
| 5985 | TCP | WinRM HTTP | Provides Windows remote management and PowerShell remoting through an HTTP transport. |
| 6443 | TCP | Kubernetes APIπ | Provides the default TLS-protected Kubernetes control-plane API endpoint. |
| 7001 | TCP | WebLogic HTTP | Provides the default non-TLS Oracle WebLogic Server application and administration listener. |
| 7002 | TCP | WebLogic HTTPSπ | Provides the default TLS-protected Oracle WebLogic Server application and administration listener. |
| 8000 | TCP | HTTP Alternate 8000 | Commonly hosts a development web server, application server, or alternate plaintext HTTP service. |
| 8008 | TCP | HTTP Alternate 8008 | Provides an IANA-registered alternate port for plaintext HTTP services. |
| 8009 | TCP | AJP | Connects a front-end web server or proxy to an Apache Tomcat application server. |
| 8080 | TCP | HTTP Alternate 8080 | Provides a widely used alternate port for plaintext web servers, proxies, and administrative interfaces. |
| 8081 | TCP | HTTP Alternate 8081 | Commonly hosts a secondary plaintext web application, proxy interface, or administrative console. |
| 8088 | TCP | Hadoop YARN Web UI | Provides the default Hadoop YARN ResourceManager web interface. |
| 8090 | TCP | Confluence HTTP | Provides the default direct HTTP connector for an Atlassian Confluence application. |
| 8091 | TCP | Couchbase Web Console | Provides the default Couchbase Server web administration console and management API. |
| 8181 | TCP | GlassFish Admin | Provides a commonly used GlassFish application-server administration console over HTTP. |
| 8200 | TCP | HashiCorp Vault | Provides the default HashiCorp Vault API and web interface endpoint, with TLS dependent on configuration. |
| 8443 | TCP | HTTPS Alternate 8443π | Commonly hosts TLS-protected web applications and administrative interfaces on an alternate HTTPS port. |
| 8500 | TCP | Consul HTTP API | Provides the default plaintext Consul HTTP API and web user interface. |
| 8888 | TCP | Jupyter Notebook | Provides the commonly used Jupyter browser interface for interactive notebooks and code execution. |
| 8983 | TCP | Apache Solr | Provides the default Apache Solr search API and administrative web interface. |
| 9000 | TCP | SonarQube | Provides the default SonarQube web interface and HTTP API for code-quality analysis. |
| 9090 | TCP | Prometheus | Provides the default Prometheus metrics query API and web interface. |
| 9200 | TCP | Elasticsearch HTTP | Provides the default Elasticsearch REST API for indexing, searching, and administering data. |
| 9443 | TCP | HTTPS Alternate 9443π | Commonly hosts a TLS-protected administrative console or alternate HTTPS application. |
| 10000 | TCP | Webmin HTTPSπ | Provides the default TLS-enabled Webmin interface for browser-based Unix system administration. |
Email8
| 25 | TCP | SMTP | Relays email between mail servers and may accept server-to-server message delivery. |
| 110 | TCP | POP3 | Downloads email from a mailbox to a client using plaintext POP3 unless upgraded with STARTTLS. |
| 143 | TCP | IMAP | Lets mail clients read and manage server-hosted mailboxes using plaintext IMAP unless upgraded with STARTTLS. |
| 465 | TCP | SMTPSπ | Submits outbound email through an SMTP service protected by implicit TLS from connection start. |
| 587 | TCP | SMTP Submission | Accepts authenticated outbound email submission from clients, commonly with STARTTLS. |
| 993 | TCP | IMAPSπ | Lets mail clients read and manage server-hosted mailboxes through IMAP protected by implicit TLS. |
| 995 | TCP | POP3Sπ | Downloads email from a mailbox through POP3 protected by implicit TLS. |
| 4190 | TCP | MANAGESIEVE | Manages server-side email filtering scripts for a user's mailbox. |
File transfer & sharing17
| 20 | TCP | FTP Data | Carries file data for active-mode FTP while port 21 carries the control session. |
| 21 | TCP | FTP | Controls FTP authentication and commands while active-mode data may use port 20. |
| 69 | UDP | TFTP | Transfers files with a minimal UDP-based protocol commonly used for device bootstrapping and configuration. |
| 111 | TCP/UDP | RPCBIND | Maps ONC RPC program numbers to the ports used by services such as NFS. |
| 139 | TCP | NetBIOS Session Service | Carries session-oriented legacy Windows file and printer sharing over NetBIOS. |
| 445 | TCP | SMB | Provides direct-hosted Windows file, printer, and interprocess sharing without requiring NetBIOS. |
| 548 | TCP | AFP | Provides legacy Apple network file sharing and related file-service operations. |
| 873 | TCP | RSYNC | Synchronizes files and directory trees efficiently between systems. |
| 989 | TCP | FTPS Dataπ | Carries the encrypted data channel for implicit FTPS while port 990 carries its control channel. |
| 990 | TCP | FTPSπ | Provides the implicit-TLS FTPS control channel while port 989 carries its data channel. |
| 2049 | TCP/UDP | NFS | Provides remote access to shared filesystems over the network. |
| 2401 | TCP | CVS-PSERVER | Provides remote CVS repository access using the pserver authentication method. |
| 3260 | TCP | ISCSI | Transports block-storage commands between iSCSI initiators and storage targets. |
| 3690 | TCP | SVN | Provides native svnserve access to Subversion version-control repositories. |
| 6881 | TCP/UDP | BITTORRENT | Carries peer-to-peer file-sharing connections on a commonly used initial BitTorrent port. |
| 9418 | TCP | GIT | Transfers Git repositories using the native unauthenticated Git protocol. |
| 20048 | TCP/UDP | MOUNTD | Handles NFS mount requests and returns file handles for exported filesystems. |
Remote access37
| 22 | TCP | SSHπ | Provides encrypted remote login, command execution, tunneling, and secure file-transfer sessions. |
| 23 | TCP | Telnet | Provides plaintext interactive remote terminal access to a networked host. |
| 102 | TCP | S7COMM | Carries programming and data-exchange traffic for Siemens S7 industrial controllers. |
| 135 | TCP/UDP | MS RPC Endpoint Mapper | Maps Microsoft RPC clients to dynamically assigned service endpoints on Windows systems. |
| 137 | UDP | NetBIOS Name Service | Registers and resolves legacy NetBIOS names on Windows networks. |
| 138 | UDP | NetBIOS Datagram Service | Carries connectionless NetBIOS datagrams for legacy Windows browsing and messaging. |
| 177 | UDP | XDMCP | Discovers and establishes remote graphical X display manager sessions. |
| 502 | TCP | MODBUS-TCP | Reads and writes coils and registers on industrial devices using Modbus over TCP. |
| 623 | UDP | IPMI | Provides out-of-band hardware monitoring and remote server management through RMCP. |
| 830 | TCP | NETCONF-SSHπ | Carries NETCONF device configuration operations through an SSH subsystem. |
| 902 | TCP | VMWARE-AUTHD | Authenticates and brokers remote management connections to VMware virtualization services. |
| 1080 | TCP | SOCKS | Relays client TCP connections through a SOCKS proxy server. |
| 1200 | TCP/UDP | CODESYS-V2 | Provides engineering and runtime communication with legacy CODESYS V2 controllers. |
| 1433 | TCP | Microsoft SQL Server | Accepts client connections to a default Microsoft SQL Server database instance. |
| 1434 | UDP | MSSQL-BROWSER | Returns Microsoft SQL Server instance names and dynamic connection-port information. |
| 1911 | TCP | NIAGARA-FOX | Carries building-automation management traffic for Tridium Niagara systems. |
| 1962 | TCP/UDP | PCWORX | Provides engineering communication with Phoenix Contact industrial controllers. |
| 2375 | TCP | DOCKER | Provides unauthenticated plaintext remote access to the Docker daemon when explicitly enabled. |
| 2376 | TCP | DOCKER-TLSπ | Provides certificate-authenticated TLS access to the Docker daemon. |
| 2377 | TCP | DOCKER-SWARMπ | Carries mutually authenticated Docker Swarm control-plane traffic between nodes and managers. |
| 2379 | TCP | ETCD-CLIENT | Accepts client key-value and cluster administration requests to etcd. |
| 2404 | TCP | IEC104 | Carries supervisory control and telemetry between electrical control centers and substations. |
| 3268 | TCP | LDAP-GC | Queries the Active Directory Global Catalog across all domains in a forest using plaintext LDAP transport. |
| 3269 | TCP | LDAPS-GCπ | Queries the Active Directory Global Catalog through a TLS-protected LDAP connection. |
| 3283 | TCP/UDP | APPLE-REMOTE-DESKTOP | Carries Apple Remote Desktop management, observation, and reporting traffic. |
| 3389 | TCP/UDP | RDPπ | Provides encrypted graphical remote desktop access to Windows systems. |
| 4444 | TCP | METASPLOIT | Commonly receives reverse-shell or Meterpreter callbacks during penetration testing. |
| 5094 | TCP/UDP | HART-IP | Carries HART process-instrument commands and data over IP networks. |
| 5555 | TCP | ADB | Provides network-accessible Android device debugging and command execution. |
| 5900 | TCP | VNC | Provides remote graphical desktop control using the Remote Framebuffer protocol. |
| 5986 | TCP | WinRM HTTPSπ | Provides Windows remote management and PowerShell remoting through a TLS-protected HTTPS transport. |
| 6513 | TCP | NETCONF-TLSπ | Carries NETCONF device configuration operations through a TLS-protected transport. |
| 9600 | TCP/UDP | FINS | Carries Omron PLC commands and data using the FINS industrial protocol. |
| 10250 | TCP | KUBELETπ | Provides the HTTPS API used to manage pods and containers on a Kubernetes node. |
| 20000 | TCP/UDP | DNP3 | Carries telemetry and control messages for electric, water, and other industrial systems. |
| 44818 | TCP/UDP | ETHERNET-IP | Carries explicit Common Industrial Protocol requests for device configuration and diagnostics. |
| 47808 | UDP | BACNET-IP | Carries building-automation discovery, monitoring, and control messages over IP. |
Name, directory & auth15
| 43 | TCP | WHOIS | Queries registration records for domains, IP networks, and autonomous systems. |
| 49 | TCP | TACACS+π | Centralizes authentication, authorization, and accounting for administrative access to network devices. |
| 53 | TCP/UDP | DNS | Resolves domain names and exchanges DNS data, normally using UDP and using TCP when required. |
| 79 | TCP | FINGER | Returns information about users and sessions on a remote host. |
| 88 | TCP/UDP | Kerberosπ | Issues and validates cryptographic tickets for centralized network authentication. |
| 113 | TCP | IDENT | Identifies the local user associated with a TCP connection when queried by a remote system. |
| 389 | TCP/UDP | LDAP | Queries and updates directory information using LDAP, with TLS available only when separately negotiated. |
| 427 | TCP/UDP | SLP | Discovers advertised network services without requiring prior service addresses. |
| 464 | TCP/UDP | KERBEROS-KPASSWDπ | Changes Kerberos principal passwords through the authenticated password-change protocol. |
| 500 | UDP | IKEπ | Negotiates security associations and keys for IPsec VPN tunnels. |
| 636 | TCP | LDAPSπ | Provides LDAP directory access protected by implicit TLS. |
| 1812 | UDP | RADIUS Authentication | Carries RADIUS authentication and authorization requests between network access devices and a server. |
| 1813 | UDP | RADIUS Accounting | Carries RADIUS session accounting records between network access devices and a server. |
| 2181 | TCP | ZOOKEEPER | Accepts client coordination and configuration requests to an Apache ZooKeeper ensemble. |
| 4369 | TCP | EPMD | Maps distributed Erlang node names to the ports used for inter-node communication. |
Databases17
| 1521 | TCP | Oracle Database | Accepts Oracle Database client sessions through the Oracle Net listener. |
| 1527 | TCP | DERBY | Accepts client connections to the Apache Derby relational database network server. |
| 2380 | TCP | ETCD-PEER | Carries replication and consensus traffic between members of an etcd cluster. |
| 2638 | TCP | SQL-ANYWHERE | Accepts client connections to an SAP SQL Anywhere database server. |
| 3050 | TCP | FIREBIRD | Accepts client connections to a Firebird relational database server. |
| 3306 | TCP | MySQL | Accepts client connections to a MySQL or compatible relational database server. |
| 5432 | TCP | PostgreSQL | Accepts client connections to a PostgreSQL relational database server. |
| 5984 | TCP | COUCHDB | Provides the default plaintext HTTP API for Apache CouchDB databases. |
| 6379 | TCP | Redis | Accepts commands for the Redis in-memory data store and message broker. |
| 6380 | TCP | REDIS-TLSπ | Accepts Redis database commands through a TLS-protected connection on a commonly used secure port. |
| 7687 | TCP | NEO4J-BOLT | Accepts graph-database client sessions using Neo4j's Bolt protocol. |
| 9042 | TCP | CASSANDRA-CQL | Accepts Cassandra Query Language client connections using the native protocol. |
| 9160 | TCP | CASSANDRA-THRIFT | Provides the legacy Thrift client interface for Apache Cassandra. |
| 9300 | TCP | ELASTICSEARCH-TRANSPORT | Carries internal Elasticsearch node-to-node cluster communication. |
| 11211 | TCP/UDP | MEMCACHED | Accepts key-value cache operations for the Memcached in-memory caching service. |
| 27017 | TCP | MONGODB | Accepts client connections to a default MongoDB database instance. |
| 50000 | TCP | DB2 | Accepts client connections to a commonly configured IBM Db2 database service. |
VPN & tunneling8
| 1194 | TCP/UDP | OPENVPNπ | Carries OpenVPN tunnel traffic, commonly over UDP but optionally over TCP. |
| 1701 | UDP | L2TP | Carries Layer 2 tunnel control and data, usually protected separately by IPsec. |
| 1723 | TCP | PPTPπ | Controls legacy PPTP VPN tunnels while GRE carries encapsulated data. |
| 4500 | UDP | IPSEC-NAT-Tπ | Encapsulates IPsec traffic in UDP so VPN tunnels can traverse network address translation. |
| 4789 | UDP | VXLAN | Encapsulates Layer 2 frames over Layer 3 networks for virtual overlay networking. |
| 6081 | UDP | GENEVE | Carries extensible network-virtualization overlays between tunnel endpoints. |
| 8472 | UDP | FLANNEL-VXLAN | Carries Kubernetes pod overlay traffic for Flannel's VXLAN backend. |
| 51820 | UDP | WIREGUARDπ | Carries encrypted WireGuard VPN tunnel packets over UDP. |
Messaging & VoIP31
| 119 | TCP | NNTP | Transfers and retrieves Usenet news articles between clients and news servers. |
| 554 | TCP/UDP | RTSP | Controls playback and delivery sessions for streaming audio and video. |
| 1719 | UDP | H323-RAS | Handles H.323 endpoint discovery, registration, admission, and status with a gatekeeper. |
| 1720 | TCP | H323-CALL | Establishes and controls H.323 multimedia calls using Q.931 signaling. |
| 1883 | TCP | MQTT | Carries lightweight publish-subscribe messages between MQTT clients and brokers. |
| 2000 | TCP | SCCP | Carries Cisco IP phone call-control signaling between endpoints and call managers. |
| 2222 | UDP | ETHERNET-IP-IO | Carries cyclic real-time I/O data between EtherNet/IP industrial devices. |
| 2427 | UDP | MGCP-GATEWAY | Receives MGCP commands at a media gateway from a call agent. |
| 2727 | UDP | MGCP-CALL-AGENT | Receives MGCP responses and notifications at a call agent from media gateways. |
| 3478 | TCP/UDP | STUN-TURN | Discovers public address mappings and relays real-time traffic through NAT for VoIP and WebRTC. |
| 4222 | TCP | NATS-CLIENT | Accepts client publish-subscribe and request-reply connections to a NATS server. |
| 4569 | UDP | IAX2 | Carries Asterisk VoIP signaling and media together over one UDP flow. |
| 4840 | TCP | OPC-UA | Exchanges industrial telemetry, alarms, and control data using OPC UA binary transport. |
| 5004 | UDP | RTP | Carries real-time audio or video media streams. |
| 5005 | UDP | RTCP | Reports quality and synchronization information for associated RTP media streams. |
| 5060 | TCP/UDP | SIP | Establishes, modifies, and terminates VoIP and multimedia sessions using plaintext SIP signaling. |
| 5061 | TCP | SIPSπ | Carries SIP signaling through a TLS-protected connection. |
| 5222 | TCP | XMPP-CLIENT | Accepts XMPP client-to-server messaging and presence connections, commonly upgraded with STARTTLS. |
| 5269 | TCP | XMPP-SERVER | Carries XMPP server-to-server federation traffic, commonly upgraded with STARTTLS. |
| 5349 | TCP/UDP | STUN-TURN-TLSπ | Provides encrypted STUN or TURN connectivity for NAT traversal and media relay. |
| 5671 | TCP | AMQPSπ | Carries AMQP messaging through a TLS-protected connection. |
| 5672 | TCP | AMQP | Carries brokered enterprise messages using plaintext AMQP unless TLS is configured separately. |
| 5683 | UDP | COAP | Provides lightweight REST-like messaging for constrained IoT devices over UDP. |
| 5684 | UDP | COAPSπ | Protects CoAP messaging with DTLS over UDP. |
| 6222 | TCP | NATS-CLUSTER | Carries route connections and message propagation between NATS servers in a cluster. |
| 6667 | TCP | IRC | Carries plaintext Internet Relay Chat client and server messaging. |
| 6697 | TCP | IRCSπ | Carries Internet Relay Chat through a TLS-protected connection. |
| 8883 | TCP | MQTTSπ | Carries MQTT publish-subscribe messages through a TLS-protected connection. |
| 9092 | TCP | KAFKA | Accepts producer, consumer, and inter-broker connections to an Apache Kafka broker. |
| 61613 | TCP | STOMP | Carries plaintext STOMP messaging to brokers such as ActiveMQ. |
| 61616 | TCP | ACTIVEMQ-OPENWIRE | Accepts native OpenWire client connections to an Apache ActiveMQ broker. |
Monitoring & management18
| 7 | TCP/UDP | ECHO | Returns received data to the sender for connectivity testing. |
| 19 | TCP/UDP | CHARGEN | Generates a stream of characters for legacy network testing. |
| 161 | UDP | SNMP | Receives network-management queries and configuration operations on managed devices. |
| 162 | UDP | SNMP Trap | Receives unsolicited SNMP event notifications from managed devices. |
| 179 | TCP | BGP | Exchanges network reachability information between autonomous-system routers. |
| 514 | UDP | Syslog | Receives connectionless plaintext log messages from network devices and hosts. |
| 520 | UDP | RIP | Exchanges IPv4 distance-vector routing updates between routers. |
| 521 | UDP | RIPNG | Exchanges IPv6 distance-vector routing updates between routers. |
| 646 | TCP/UDP | LDP | Distributes MPLS label mappings between label-switching routers. |
| 2055 | UDP | NETFLOW | Receives exported network-flow records from routers and switches. |
| 3784 | UDP | BFD-CONTROL | Exchanges rapid liveness-control messages between forwarding devices. |
| 3785 | UDP | BFD-ECHO | Loops BFD echo packets through a neighbor to test forwarding-path continuity. |
| 4739 | TCP/UDP | IPFIX | Receives standardized network-flow records exported by observation points. |
| 5666 | TCP | NRPEπ | Runs approved Nagios monitoring plugins on remote hosts and returns their results. |
| 6343 | UDP | SFLOW | Receives sampled packet and counter telemetry from network devices. |
| 6514 | TCP | SYSLOG-TLSπ | Receives reliable syslog messages through a TLS-protected transport. |
| 10050 | TCP | ZABBIX-AGENT | Answers monitoring checks requested by a Zabbix server or proxy. |
| 10051 | TCP | ZABBIX-SERVER | Receives monitoring data from Zabbix agents, proxies, and active checks. |
Core network services7
| 67 | UDP | DHCP Server | Receives DHCP client broadcasts and sends network configuration offers from a server. |
| 68 | UDP | DHCP Client | Receives DHCP offers and configuration replies sent to a client by a server on port 67. |
| 123 | UDP | NTP | Synchronizes clocks between networked systems. |
| 515 | TCP | LPD | Accepts legacy remote print jobs and print-queue commands. |
| 546 | UDP | DHCPv6-CLIENT | Receives IPv6 addressing and configuration replies on DHCPv6 clients. |
| 547 | UDP | DHCPv6-SERVER | Receives DHCPv6 client requests and sends IPv6 configuration replies. |
| 9100 | TCP | JETDIRECT | Accepts raw print data directly on network printers and print servers. |
About this cheat sheet
- Source
- Port assignments are checked against the IANA Service Name and Transport Protocol Port Number Registry, the authoritative record for registered ports.
- Scope
- 200 ports β the ones that turn up in real networks and in certification exams, not all 65,535. Descriptions are written for people learning them, not copied from the registry.
- Maintenance
- Reviewed when protocols change or an error is reported. The same dataset drives the Port Scan and Port Recall practice modes, so it stays in daily use rather than published once and forgotten.
- Corrections
- Spotted something wrong? Tell us and we will fix it. Compiled and maintained by CyberQuizzer.
Frequently asked questions
What is the difference between a port and a protocol?
A protocol is the set of rules two systems use to talk to each other β HTTP, SSH, DNS. A port is the numbered door on the machine where that conversation happens. Most protocols have a default port (HTTP on 80), but the two are not welded together: a web server listening on 8080 is still speaking HTTP. The port tells you where to knock; the protocol tells you what language to speak once the door opens.
What are the three port number ranges?
There are 65,536 ports in total, numbered 0 to 65535, split into three ranges. Well-known ports (0β1023) are assigned by IANA to core services and normally require administrative privileges to bind. Registered ports (1024β49151) are assigned to specific applications, such as MySQL on 3306 or RDP on 3389. Dynamic or private ports (49152β65535) are ephemeral β your machine picks one at random as the source port for an outbound connection.
What is the difference between TCP and UDP ports?
TCP establishes a connection before sending data, guarantees delivery and ordering, and retransmits anything lost β which suits file transfers, web traffic and email. UDP just sends, with no handshake and no delivery guarantee, making it faster and better suited to DNS lookups, DHCP, VoIP and streaming, where a late packet is worse than a missing one. The numbering is independent: TCP 53 and UDP 53 are different doors that happen to share a number.
Why does DNS use both TCP and UDP on port 53?
UDP 53 handles ordinary lookups. They are small, and retrying a lost query is cheaper than setting up a connection for it. TCP 53 takes over when a response is too large for a single UDP datagram, and for zone transfers (AXFR), where an entire zone file is copied between name servers and reliability matters. Exam questions almost always target the zone-transfer half.
Which ports should never be exposed to the internet?
Port 3389 (RDP) is the most brute-forced port online and a frequent ransomware entry point. Port 445 (SMB) is the EternalBlue and WannaCry vector. Port 23 (Telnet) sends credentials in cleartext and has no business running at all. Database listeners β 1433, 3306, 5432, 6379, 27017 β should never be directly reachable. Port 161 (SNMP) is often left on default community strings. Put all of these behind a VPN or a bastion host rather than a firewall rule you hope holds.
Which ports do I need to know for CompTIA A+, Network+ and Security+?
A+ and Network+ both publish explicit port lists in their exam objectives, and Security+ leans on the authentication and encryption ports β 88 for Kerberos, 49 for TACACS+, 1812 for RADIUS, 500 and 4500 for IPsec. Rather than memorising all 200, start with the two dozen in the most-tested ports section at the top of this page, which covers the overlap between the three exams. Objectives change between exam versions, so check the current ones for the exam you are sitting.
What is the difference between FTP, FTPS and SFTP?
FTP (ports 20 and 21) is the original file transfer protocol and is entirely cleartext. FTPS is FTP wrapped in TLS β the same protocol, encrypted, typically on port 990. SFTP is not FTP at all: it is file transfer over SSH, running on port 22, sharing nothing with FTP but three letters. Study material commonly pairs FTP with SFTP as the insecure-versus-secure answer, which is practically useful, though FTPS is FTPβs direct encrypted counterpart.
Reading a list won't stick. Drill these until they're instinct in Port Scan (spot the service) and Port Recall (type them from memory).