The Wayback Machine - https://web.archive.org/web/20240717024730/https://www.geeksforgeeks.org/various-tcp-and-udp-ports/
Open In App

Various TCP and UDP ports

Last Updated : 12 Jul, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

Transportation layer conventions utilize the idea of ports and multiplexing/demultiplexing to convey information to individual services listening on network nodes. These ports are spoken to by a solitary 16-bit number, implying that they can constitute a range of numbers 0-65535. This range has been separated by the IANA (Internet Assigned Numbers Authority) into several different segments : 

  • Port 0 is not used for internet/network traffic, but it’s sometimes utilized in communications going down between different programs on identical computers.
  • Ports 1-1023 are alluded to as system ports. These ports speak to official ports for most notable system administrations and many common network services. HTTP usually communicates at port 80, while FTP at port 21. In most working frameworks/OS, administrative-level access is expected to begin a program that tunes in on a system port.
  • Ports 1024-49151 are known as registered ports. These ports are utilized for a bunch of different network functions and services that probably won’t be very frequently used as ones that are on system ports. A genuine case of a registered port is 3306, which is a port that numerous databases tune in on. Registered ports are in some cases formally enlisted and recognized by IANA, yet this is not certain to always be the case. On most operating systems, any client of any entry-level can run a program tuning in on a Registered port.
  • Lastly, there is a range of ports from port 49152-65535. These are known as Ephemeral ports (or private ports). Ephemeral ports can’t be enlisted with IANA and are commonly utilized for setting up outbound network traffic and connections. All TCP traffic needs one destination port and one source port to establish a connection. At the point when a client needs to speak with a server, the client will be appointed an ephemeral port to be utilized for simply that one connection, while the server tunes in on a static system framework or registered port.

Not every single working operating system follows ephemeral port proposals of IANA. The ephemeral ports utilized for outbound associations comprise ports 49152 through 65535. Yet, this range of ports can change as per the operating system and framework you’re dealing with. Quite a few times registered ports are utilized, however, no modern operating system will ever utilize a system port for outbound connections. 

Here are some commonly used ports for reference:  

PORT Service Description Transport Protocol
7 Echo Port just echoes whatever is sent to it. This feature can be used in many attacks, such as Smurf/Fraggle. TCP and UDP
20 /21 File Transfer Protocol (FTP) Port used by FTP protocol to send data to the client TCP
22 Secure Shell (SSH) Used as secure replacement protocol for Telnet TCP and UDP
23 Telnet Port used by Telnet to remotely connect to a workstation or server(unsecured) TCP
25 Simple Mail Transfer Protocol (SMTP) Used to send E-Mail over internet TCP
53 Domain Name System (DNS) Port for DNS requests, network routing, and zone transfers TCP and UDP
67 /68 Dynamic Host Configuration Protocol (DHCP) Used on networks that do not use static IP address assignment. UDP
80 Hypertext Transfer Protocol (HTTP) Used for browsing web-pages on a browser TCP
110 Post Office Protocol (POP3) Port used to retrieve complete contents of a server mailbox TCP
143 Internet Message Access Protocol (IMAP4) Internet Message Access Protocol (IMAP4) is a new protocol to read an email with a wider range of operations TCP and UDP
194 Internet Relay Chat Protocol(IRC) allows communication in form of text between multiple parties, one or more clients can connect to a centralized server. TCP and UDP
443 HTTP with Secure Sockets Layer (SSL) Port used for secure web traffic TCP and UDP
3389 Remote Desktop Protocol(RDP) Port used by remote desktop to remotely manage other windows system TCP and UDP

The transport layer has a lot of ports to accommodate various application protocols simultaneously. The ports are dictated by the type of transport layer connectivity. 
Also, remember that there are lots of protocols in the application layer but not all of them require port numbers (like TCP or UDP). Internet Control Message Protocol (ICMP) is one of them. 



Similar Reads

TCP/IP Ports and Its Applications
A port is the logical address of any protocol; alternatively, we might think of a port as a special door for each protocol, through which all packets are routed. Another way to put it is that every protocol has a mailbox, or box, where every protocol packet is dropped. Subsequently, the recipient will access that packet and peruse the content sent
6 min read
TCP and UDP in Transport Layer
Layer 3 or the Network layer uses IP or Internet Protocol which being a connection less protocol treats every packet individually and separately leading to lack of reliability during a transmission. For example, when data is sent from one host to another, each packet may take a different path even if it belongs to the same session. This means the p
4 min read
Examples of TCP and UDP in Real Life
Today we will see the Real-Life Examples of TCP and UDP in Computer Networks Before looking at the Real-Life Examples of TCP and UDP, Let's see What is Computer Network? A Computer Network is a set of devices (Nodes) that are connected to each other by communication links to share digital information.The communication links can either be wireless m
8 min read
How Applications Coexist Over TCP and UDP?
The Transport layer takes data from the Application layer, then it breaks into small segments called packets. Then handles them to the Network Layer for delivery. The transport layer uses two protocols which will be discussed here in this article. They are TCP ( Transmission Control Protocol ) and UDP ( User Datagram Protocol ). TCP ( Transmission
4 min read
Difference Between TCP, UDP and SCTP Protocols
In the realm of computer networking, different protocols play a vital role in facilitating the transmission of data across the internet. Three prominent protocols, TCP (Transmission Control Protocol), UDP (User Datagram Protocol), and SCTP (Stream Control Transmission Protocol), serve as the building blocks of modern network communication. Each of
6 min read
Why does DNS use UDP and not TCP?
DNS is an application layer protocol. All application layer protocols use one of the two transport layer protocols, UDP and TCP. TCP is reliable and UDP is not reliable. DNS is supposed to be reliable, but it uses UDP, why? There are the following interesting facts about TCP and UDP on the transport layer that justify the above. 1) UDP is much fast
2 min read
Differences between TCP and UDP
Transmission Control Protocol (TCP) and User Datagram Protocol (UDP) both are protocols of the Transport Layer Protocols. TCP is a connection-oriented protocol whereas UDP is a part of the Internet Protocol suite, referred to as the UDP/IP suite. Unlike TCP, it is an unreliable and connectionless protocol. In this article, we will discuss the diffe
8 min read
How To Check Open TCP/IP Ports in Windows?
Certain apps and processes in Windows 10 can cause problems if you're not properly connected to the internet. Firewalls can cause these connection issues when they cannot determine whether incoming and outgoing connections pose a threat. Work around this issue and open ports for incoming and outgoing connections. We will know to check whether a TCP
5 min read
TCP vs UDP for Video Streaming
Prerequisite : TCP/IP Model, User Datagram Protocol (UDP)In this era of the modern internet with entertainment, education, gaming and all kinds of necessities streaming live everyday, the demand of an uninterrupted video stream is highly adamant. To dive into the topic of which protocol is better for video streaming, one must be familiar with the T
6 min read
Why is YouTube using TCP but not UDP?
Overview :In this article, we will discuss about which technology YouTube uses for streaming videos and music on its platform. YouTube is an American online video sharing and web-based media stage by Google. It is most utilized sites in the entire world. YouTube is a free video-facilitating site that permits individuals to store and serve video con
3 min read