TechKnowSurge
CompTIA Network+ 1.4 CompTIA A+ Core 1 2.1 Cisco CCST Networking 1.5 CompTIA Server+ 2.5 Cisco CCST Cybersecurity 2.1
VideoNetworkFree

What’s a Network Port?

Network ports are numerical identifiers that direct incoming traffic to the correct service running on a server. Understanding port ranges and common port assignments is fundamental to managing and securing networked systems.

Complete this video to capture a CTF flag worth 1 point.

About this video

Network ports are numerical identifiers assigned to services running on a server, allowing incoming traffic to be directed to the correct application or process. A single server commonly handles many different types of connections at once — serving web pages, responding to application requests, streaming media, and accepting remote management sessions — and ports are the mechanism that keeps each traffic type separated and properly handled. Without port assignments, a server would have no reliable way to distinguish one type of request from another. Port numbers are divided into three standardized ranges. The well-known ports, numbered 0 through 1023, are reserved for widely recognized protocols and services. HTTP uses port 80 for unencrypted web traffic, while HTTPS uses port 443 for encrypted connections — and in practice, most modern web traffic runs over 443. The registered ports, ranging from 1024 to 49151, are available for custom or third-party applications and can be formally registered, though in practice many organizations assign ports from this range without formal registration. Dynamic or ephemeral ports occupy the upper range and are typically used for temporary, client-side connections. For anyone working in networking or cybersecurity, familiarity with common port assignments is essential. Knowing that port 80 and 443 correspond to web traffic, for example, is the kind of baseline knowledge that informs firewall configuration, traffic analysis, vulnerability assessment, and incident response. Port awareness is not just an administrative concern — it is a core component of understanding how networked systems are structured and where they may be exposed to risk.

What you'll learn

What's covered

Network Ports

Aligned to

CompTIA Network+
1.4 Explain common networking ports, protocols, services, and traffic types.
CompTIA A+ Core 1
2.1 Compare and contrast Transmission Control Protocol (TCP) and User Datagram Protocol (UDP) ports, protocols, and their purposes.
Cisco CCST Networking
1.5 Describe common network applications and protocols.
CompTIA Server+
2.5 Explain server roles, features, and services.
Cisco CCST Cybersecurity
2.1 Describe TCP/IP protocol vulnerabilities.

Key terms

Port
A logical endpoint for communication in a network, identified by a number that specifies a particular service or application.
Server
A computer or program that provides services or resources to other devices, known as clients, over a network.
Protocol
A set of rules governing the format and transmission of data between devices.
Hypertext Transfer Protocol
HTTP
An application-layer protocol that defines how web browsers and servers communicate to request and deliver web pages and other content, operating over TCP on port 80. HTTP transmits data in plaintext, which is why it has been largely replaced by HTTPS for sensitive content.
Hypertext Transfer Protocol Secure
HTTPS
The encrypted version of HTTP that wraps web traffic in a TLS session, operating on TCP port 443, so that the data exchanged between a browser and a web server is confidential and cannot be read or modified by an eavesdropper. HTTPS is now the standard for all web traffic, indicated by the padlock icon in a browser.
Well-Known Ports
Port numbers ranging from 0 to 1023 that are reserved for standard, widely used services and protocols.

Transcript

A big part of how computers communicate is through network ports.

There's probably several things that we want to do for our business, techknowdj.com. For one, we want a website, so we're going to set up a service that's going to deliver a website. Also, we want to have that list of songs to be able to communicate to our app so that the app can go and request a list of songs. Also, the streaming of music looks very different, so we probably are going to have a different program that's going to be set up for streaming music.

So we have a lot of different types of requests that are coming into the server. For instance, one for our web page. We have one from our app that's trying to connect to our server. We also probably set up a separate service for streaming, because that streaming traffic looks very different from these other types of traffic that we have over here. There are other types of connections that we might have set up too, like remoting into this server, which would be a different type of connection.

So there's a lot of different services that this server could be offering. How does it keep track of these different requests and what service they're requesting it from? That's where ports come into play. Ports allow traffic that's coming into the server to be able to know what service it's going to be sent to.

For instance, with our web traffic, that's commonly assigned to port 80 or 443 — 443 for secured traffic, port 80 for insecure traffic. And so everything actually is going to 443. But when a user makes a connection requesting port 80, it's going to be sent to that web service and respond to that. Or maybe the app that we're creating, perhaps we assign port 81 to it. Maybe that streaming service, we assign port 82 to it. So each one of these services is going to be assigned a port, so that way when traffic comes into this server, it understands what service it's associated with.

Port number groups

There are port ranges here, so let's talk about port number groups. A range from 0 to 1,023 is what we call the well-known ports. These ports are the ones that are really already spoken for, so we typically don't use those for other services that we would create. It would just be for the services that are already created, like web traffic.

And then there's these registered ports, the 1,00 to 49,000 range right here. Those are supposed to be ones that you actually register, so if you're going to use it, you should register it. Although a lot of times we will use ports in that range and not register it. And then there's these dynamic, private or ephemeral ports. We won't get into the details of all of these port assignments; just know that there's these certain ranges.

Here are some of those well-known ports and the services that are associated with those ports. Once again, we mentioned port 80 is associated with HTTP traffic — that's that web traffic — and 443, which is the secure method of HTTP. So those would be associated with those web services. And so when traffic comes in to port 80 or 443, it's usually for web pages and websites.

About TechKnowSurge

TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.

Explore free tools and programs →