How Many Types of Computer Ports and their Functions

Explain different types of ports in computer

The ports are the physical docking points present in the computer through which the external devices are connected using cables. Or in other words, a port is an interface between the motherboard and an external device of the computer. There are different types of ports available: Serial portParallel port.

How many types of ports are there in Computer?

Based on the type of protocol used for communication, computer ports can be of two types: Serial Ports and Parallel Ports.

How many ports are there?

65,535 port numbers

There are 65,535 port numbers, but not all are used every day. Restricted port numbers or well-known port numbers are reserved by prominent companies and range from 0 to 1023

How many ports does a computer have?

65,535 ports

Ports and Protocols. Between the protocols User Datagram Protocol (UDP) and Transmission Control Protocol (TCP), there are 65,535 ports available for communication between devices.

Where are the different ports in the computer system?

Image result for Explain different types of ports in computer

External devices are connected to a computer using cables and ports. Ports are slots on the motherboard into which a cable of the external device is plugged. Examples of external devices attached via ports are the mouse, keyboard, monitor, microphone, speakers, etc.

Types of Computer Ports

A computer port is an interface or connection point between a computer and its peripheral devices. Common peripherals include a mouse, keyboard, monitor or display device, printer, speaker, and flash drive.

The main function of a computer port is to act as a connection point allowing cables from peripheral devices to be attached and data transfer to and from the device.

A computer port is also known as a communication port because it is responsible for communication between a computer and its peripheral devices. The female side of the connector is often called a port and is commonly found on motherboards.

In computers, communication ports can be divided into two types based on the type or protocol used for communication. They are serial ports and parallel ports.

A serial port is an interface that allows you to connect peripherals using a serial protocol that sends data bit by bit over the communication line. The most common type of serial port is a D-subminiature or D-sub connector that carries RS-232 signals.

A parallel port, on the other hand, is an interface in which the communication between the computer and its peripherals takes place in a parallel fashion. That is, data is sent and received in parallel using multiple communication lines or wires. The printer port is an example of a parallel port.

This article will briefly introduce the different types of gates and their uses.

Types of Computer Ports
Types of Computer Ports


PS/2 connector was developed by IBM to connect the mouse and keyboard. It was introduced in the IBM Personal System/2 series of computers, hence the name PS/2 connector. The PS/2 connectors are purple-coded for the keyboard and green for the mouse.

PS/2 connector
PS/2 connector

PS/2 is a 6-pin DIN connector. The pin-out diagram of a PS/2 female connector is shown below.

For PS/2, if you plug it into the wrong port, your computer will not recognize the device.

PS/2 ports are now considered legacy ports as they have been replaced by USB ports and some modern motherboards include Macs.

Serial Port

Communication on PS/2 and USB is serial communication, but technically the term serial port is used to refer to any interface that conforms to the RS-232 standard. There are two types of serial ports commonly found on computers: DB-25 and DE-9.


DB-25 is a variant of the D-sub connector, originally a port for RS-232 serial communications. They were developed as primary ports for serial connections using the RS-232 protocol, but not all pins are needed for most applications.

Thus, DE-9 was developed for serial communication based on RS-232, while DB-25 was rarely used as a serial port, instead of his 36 parallel pins on the Centronics connector a parallel printer port. more commonly used as

DE-9 or RS-232 or COM Port

DE-9 is the main port for RS-232 serial communication. It is a D-sub connector with an E shell and is often miscalled as DB-9. A DE-9 port is also called a COM port and allows full duplex serial communication between the computer and its peripherals.

Some of the applications of the DE-9 port are the serial interface with a mouse, keyboard, modem, uninterruptible power supplies (UPS), and other external RS-232 compatible devices.

DE-9 Port

The pinout diagram of the DE-9 port is shown below.


The use of DB-25 and DE-9 ports for communication is in decline and are replaced by USBs or other ports.

Parallel Port or Centronics 36-Pin Port

The parallel port is an interface between the computer and peripheral devices like printers with parallel communication. The Centronics port is a 36-pin port that was developed as an interface for printers and scanners hence a parallel port is also called a Centronics port.

Before the wide use of USB ports, parallel ports are very common in printers. The Centronics port was later replaced by the DB-25 port with a parallel interface.

Audio Ports

Audio ports are used to connect speakers or other audio output devices to the computer. The audio signals can be either analog or digital and depending on that the port and its corresponding connector differ.

Surround Sound Connectors or 3.5 mm TRS Connector

It is the most commonly found audio port that can be used to connect stereo headphones or surround sound channels. A 6-connector system is included on the majority of computers for audio out as well as a microphone connection.

The 6 connectors are color coded as Blue, Lime, Pink, Orange, Black, and Grey. These 6 connectors can be used for a surround sound configuration of up to 8 channels.

Surround Sound Ports


The Sony/Phillips Digital Interface Format (S/PDIF) is an audio interconnect used in home media. It supports digital audio and can be transmitted using a coaxial RCA Audio cable or an optical fiber TOSLINK connector.

Most computers and home entertainment systems are equipped with S/PDIF over TOSLINK. TOSLINK (Toshiba Link) is the most frequently used digital audio port that can support 7.1 channel surround sound with just one cable. In the following image, the port on the right is a S/PDIF port.


Video Ports

VGA Port

VGA port is found in many computers, projectors, video cards, and High Definition TVs. It is a D-sub connector consisting of 15 pins in 3 rows. The connector is called DE-15.

VGA port is the main interface between computers and older CRT monitors. Even the modern LCD and LED monitors support VGA ports but the picture quality is reduced. VGA carries analog video signals up to a resolution of 648X480.

VGA Port

With the increase in the use of digital video, VGA ports are gradually being replaced by HDMI and Display Ports. Some laptops are equipped with onboard VGA ports in order to connect to external monitors or projectors. The pinout of a VGA port is shown below.


Digital Video Interface (DVI)

DVI is a high-speed digital interface between a display controller like a computer and a display device like a monitor. It was developed with an aim of transmitting lossless digital video signals and replacing analog VGA technology.

DVI Port

There are three types of DVI connectors based on the signals they can carry: DVI-I, DVI-D, and DVI-A. DVI-I is a DVI port with integrated analog and digital signals. DVI-D supports only digital signals and DVI-A supports only analog signals.

The digital signals can be either single link or dual link where a single link supports a digital signal up to 1920X1080 resolution and a dual-link supports a digital signal up to 2560X1600 resolution. The following image compares the structures of DVI-I, DVI-D, and DVI-A types along with the pinouts.



The mini-DVI port is developed by Apple as an alternative to the Mini-VGA port and is physically similar to one. It is smaller than a regular DVI port.

It is a 32-pin port and is capable of transmitting DVI, composite, S-Video, and VGA signals with respective adapters. The following image shows a Mini-DVI port and its compatible cable.

Mini DVI Port


Micro-DVI port, as the name suggests is physically smaller than Mini-DVI and is capable of transmitting only digital signals.

This port can be connected to external devices with DVI and VGA interfaces and respective adapters are required. In the following image, a Micro-DVI port can be seen adjacent to headphones and USB ports.

Display Port

Display Port is a digital display interface with optional multiple-channel audio and other forms of data. Display Port is developed with an aim of replacing VGA and DVI ports as the main interface between a computer and monitor.

The latest version DisplayPort 1.3 can handle a resolution of up to 7680 X 4320.

The Display Port has a 20-pin connector, which is a very less number when compared to the DVI port and offers better resolution. The pin-out diagram of a Display Port is shown below.


Update: DisplayPort 1.4a is the latest (in production) version of DisplayPort Specification with support for 4K (3840 x 2160) at 120 Hz or 8K (7680 x 4320) at 60 Hz. An improved DisplayPort version 2.0 specification is released in June of 2019 with an increased bandwidth of 77.37 Gbps (approximately).

Mini DisplayPort

Apple introduced a miniature version of DisplayPort and called it Mini DisplayPort (mDP or Mini DP). Even though Mini DisplayPort has 20 pins, the physical size of the connector is smaller than a regular DisplayPort and the pinout is also different.

Mini DisplayPort

Most laptops provide Mini DisplayPort as an additional video-out option in addition to HDMI.

RCA Connector

RCA Connector can carry composite video and stereo audio signals over three cables. The composite video transmits analog video signals and the connector is a yellow-colored RCA connector.

The video signals are transmitted over a single channel along with the line and frame synchronization pulses at a maximum resolution of 576i (standard resolution).

The red and white connectors are used for stereo audio signals (red for the right channel and white for the left channel).

RCA Port

Component Video

Component Video is an interface where the video signals are split into more than two channels and the quality of the video signal is better than Composite video.

Like the composite video, component video transmits only video signals and two separate connectors must be used for stereo audio. Component video ports can transmit both analog and digital video signals.

The ports of the commonly found Component video use 3 connectors and are color coded as Green, Blue, and Red.


S-Video or Separate Video connector is used for transmitting only video signals. The picture quality is better than that of Composite video but has a lesser resolution than Component video.

The S-Video port is generally black in color and is present on all TVs and most computers. The S-Video port looks like a PS/2 port but consists of only 4 pins.

S Video

Out of the 4 pins, one pin is used to carry the intensity signals (black and white) and another pin is used to carry color signals. Both these pins have their respective ground pins. The pinout diagram of an S-Video port is shown below.


HDMI is an abbreviation of High Definition Media Interface. HDMI is a digital interface to connect High Definition and Ultra High Definition devices like Computer monitors, HDTVs, Blu-Ray players, gaming consoles, High Definition Cameras, etc.

HDMI can be used to carry uncompressed video and compressed or uncompressed audio signals. The HDMI port of type A is shown below.


The HDMI connector consists of 19 pins and the latest version of HDMI i.e. HDMI 2.0 can carry a digital video signal up to a resolution of 4096×2160 and 32 audio channels. The pinout diagram of an HDMI port is as follows.


Update: The latest version of HDMI is 2.1 with much-improved bandwidth, resolution, and support from video card manufacturers. While HDMI 2.0 has a data bandwidth of 18 Gbps, HDMI 2.1 has a staggering 48 Gbps of bandwidth. Coming to the display resolution, HDMI 2.1 supports 4K and 8K at a 120 Hz refresh rate. Most modern (at least high-end) graphics cards like Nvidia RTX 3090 provide at least a couple of HDMI 2.1 Ports to connect with monitors and TVs.


With HDMI 1.3 Version, a new HDMI Port and Connector combination is released called the Mini HDMI. Physically, it is smaller than a regular HDMI Port but has the same 19 Pin. Intended for portable devices like laptops, cameras, and camcorders, the Mini HDMI Port isn’t that popular.

Micro HDMI

HDMI developers introduced a new HDMI Connector and Port called Micro HDMI with HDMI Version 1.4. Micro HDMI also has 19 pins (just like regular HDMI and Mini HDMI) but the pinout is different.

Micro HDMI is often used in cameras, single board computers (like Raspberry Pi 4), etc. where physically it is difficult to include a regular HDMI port.

Micro HDMI Port

The size of Micro HDMI is significantly smaller than regular HDMI and has some resemblance to a micro–USB Port (sometimes people confuse the two). The port on the left is a micro USB port and the one on the right is a micro HDMI Port.

Micro USB and Micro HDMI


Universal Serial Bus (USB) replaced serial ports, parallel ports, PS/2 connectors, game ports, and power chargers for portable devices.

USB ports can be used to transfer data, act as an interface for peripherals and even act as a power supply for devices connected to them. There are three kinds of USB ports: Type A, Type B, or mini USB, and Micro USB.

USB Type A

USB Type-A port is a 4-pin connector. There are different versions of Type – USB ports: USB 1.1, USB 2.0, and USB 3.0. USB 3.0 is the common standard and supports a data rate of 400MBps.

USB 3.1 is also released and supports a data rate of up to 10Gbps. Usually, but not all the time, the USB 2.0 is Black color-coded and USB 3.0 is Blue. The following image shows USB 2.0 and USB 3.0 ports.

USB 2.0 and USB 3.0

The pinout diagram of the USB Type-A port is shown below. The pinout is common to all standards of Type–A.


USB Type C

USB Type – C is the latest specification of the USB and is a reversible connector. USB Type – C is supposed to replace Types A and B and is considered future-proof.

USB Type C

The port of USB Type – C consists of 24 pins. The pinout diagram of USB Type – C is shown below. The latest USB Specifications (USB4) is a USB-C-only specification i.e., only USB type C devices can be used with USB4 specifications.


In the latest USB4 specification, USB Type C Devices can support speeds up to 40 Gbps.

USB Power Delivery specifications allow USB devices to supply power to devices connected to the USB Port. USB Type – C can handle a current of 5A at 20V (only Power Delivery certified USB Type-C Ports).

This feature of handling high current is used in the latest Fast Charging Technology where a Smart Phone’s battery will reach its full charge in very less time. So, USB Type C Ports can provide up to 100W of power (which can be used for charging mobile phones and laptops).

In fact, the latest Apple M1 Mac Books use 61W USB C Power Adapter.


Ethernet is a networking technology that is used to connect your computer to the Internet and communicate with other computers or networking devices.

The interface that is used for computer networking and telecommunications is known as Registered Jack (RJ) and RJ – the 45 port in particular is used for Ethernet over cable. The RJ-45 connector is an 8-pin – 8 contacts (8P – 8C) type modular connector.

The latest Ethernet technology is called Gigabit Ethernet and supports a data transfer rate of over 10 gigabits per second. The Ethernet or a LAN port with an 8P – 8C type connector along with the male RJ-45 cable is shown below.

The un-keyed 8P – 8C modular connector is generally referred to as the Ethernet RJ-45. Often, RJ-45 ports are equipped with two LEDs for indicating transmission and packet detection.

RJ45 Port

As mentioned earlier, an Ethernet RJ-45 port has 8 pins and the following picture depicts the pinout of one.



RJ-11 is another type of Registered Jack that is used as an interface for telephone, modem, or ADSL connections. Even though computers are almost never equipped with an RJ-11 port, they are the main interface in all telecommunication networks.

RJ-45 and RJ11 ports look alike but RJ-11 is a smaller port and uses a 6-point – 4 contact (6P – 4C) connector even though a 6-point – 2 contacts (6P – 2C) is sufficient. The following is a picture of an RJ-11 port and its compatible connector.

RJ11 Port and Connector

The following image can be used to compare RJ-45 and RJ-11 ports.


e-SATA is an external Serial AT Attachment connector that is used as an interface for connecting external mass storage devices. A modern e-SATA connector is called e-SATAp and stands for Power e-SATA ports.

They are hybrid ports capable of supporting both e-SATA and USB. Neither the SATA organization nor the USB organization has officially approved the e-SATAp port and must be used at the user’s risk.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button