Skip to content
Related Articles

Related Articles

Various TCP and UDP ports

Improve Article
Save Article
  • Difficulty Level : Easy
  • Last Updated : 12 Jul, 2022
Improve Article
Save Article

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:  

PORTServiceDescriptionTransport Protocol
7EchoPort just echoes whatever is sent to it. This feature can be used in many attacks, such as Smurf/Fraggle.TCP and UDP
20 /21File Transfer Protocol (FTP)Port used by FTP protocol to send data to the clientTCP
22Secure Shell (SSH)Used as secure replacement protocol for TelnetTCP and UDP
23TelnetPort used by Telnet to remotely connect to a workstation or server(unsecured)TCP
25Simple Mail Transfer Protocol (SMTP)Used to send E-Mail over internetTCP
53Domain Name System (DNS)Port for DNS requests, network routing, and zone transfersTCP and UDP
67 /68Dynamic Host Configuration Protocol (DHCP)Used on networks that do not use static IP address assignment.UDP
80Hypertext Transfer Protocol (HTTP)Used for browsing web-pages on a browserTCP
110Post Office Protocol (POP3)Port used to retrieve complete contents of a server mailboxTCP
143Internet Message Access Protocol (IMAP4)Internet Message Access Protocol (IMAP4) is a new protocol to read an email with a wider range of operationsTCP and UDP
194Internet 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
443HTTP with Secure Sockets Layer (SSL)Port used for secure web trafficTCP and UDP
3389Remote Desktop Protocol(RDP)Port used by remote desktop to remotely manage other windows systemTCP 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. 

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!