Whenever someone tries to access a website and its content then the port 80 is used for that purpose but how does the computer know it needs to use the port 80? and how is data sent to the browsers using this port. For that, we need to understand what is port 80.
What is Port 80?
Whenever we go to a website by typing the address of the website in the URL section of the browser (for example - geeksforgeeks.org), our browser sends a request to the website's server which is hosting that site and it mostly hosts it on the port 80, then the server sees the request and according to the request, it shows you the page or data that you may have requested from the website. Port 80 is a port used for networking in the HTTP protocol so that whenever someone visits a website the server can get the request and give the files requested by the user.
When the WWW or World Wide Web was gaining popularity in the computer science field, Tim Berners-Lee developed the HTTP protocol so that communication between the web servers and users could happen for this purpose, they needed to have a standardized port. Hence, they used the port 80 for this.
Working of Port 80
The port 80 is commonly used in the web server and in the communication between a server that hosts the website and the web application or web browser.
Port 80 sent a requestLet's take a look at the working of port 80 to understand how the port works, the port works in the following steps:
- Client Request: The client request is the first step in the connection of port 80, in this step, the client opens a web browser to open a website and when the user requests a website then this request is generated and sent to the server using a connection protocol known as TCP/IP protocol.
- Destination Port: In the request we specify the destination port so the browser specifies the destination port, this means that the web browser is telling the web server through port 80 about which service the user is trying to access.
- Web Server Response: The web server receives the HTTP request on port 80 and then processes it by checking which resource is required such as - images, videos, document files, etc., and provides the necessary resource.
- Data Transfer: The HTTP response is sent which contains the requested data, this data also contains HTTP status code (such as - success, redirection, error, etc.)
- Browser Rendering: This is the last step in the working of port 80. in this, the server gives the required resource as a response back to the web application so that the browser can render it and show it to the end user.
Applications of Port 80
Some of the applications of port 80 are:
- Many servers use it such as the Apache HTTP server and Nginx.
- Website hosting also uses port 80 because web hosting requires the use of servers.
- Many popular browsers such as Google Chrome, Mozilla Firefox, and Microsoft Edge use port 80.
- APIs also use the port 80 using the HTTP protocol.
Difference Between Port 80 and Port 443
Feature | Port 80 | Port 443 |
|---|
Protocol Used | HTTP Protocol is used. | HTTPS Protocol is used. |
Encryption Level | Port 80 is Unencrypted. | Port 443 is Encrypted using SSL/TLS. |
Purpose | It is used for non-secure web communication. | It is used for web communication to securely visit. |
Default Usage | It is the default port for HTTP communication. | It is the default port for HTTPS communication. |
Security | In this, the data is transmitted in plain text. | In this, data is transmitted securely with encryption. |
Advantages of Using Port 80
Some of the benefits of using port 80 are:
- Port 80 enables the transmission of data in plain text format.
- Port 80 is used in the web servers, web browsers, etc.
- The port 80 helps to easily identify the web addresses.
- Configuring the web servers to work on Port 80 is very easy.
Disadvantages of Port 80
Let's also take a look at the various drawbacks one can have if one is not using port 80:
- Port 80 transmits data in plain text so the data is not much secure.
- Data transmitted over Port 80 is vulnerable to attacks.
- Port 80 does not have server authentication.
- Port 80 does not provide data integrity checks.
Conclusion
Port 80 is used for web applications and websites so that the web browser can have a connection between the client and the server. this helps the web browser or client to easily access any type of content that they need from a particular website, the server checks the result and gives the files required to the client.
Similar Reads
What is a Switch Port?
A network switch is a piece of hardware that allows computers to communicate with one another. It accepts physical connectors from computers and other network devices and then uses packet switching to receive and forward data. Connecting different devices to the ports on a network switch allows them
2 min read
What is Serial Port?
Serial ports are communication interfaces used for the transfer of data between a computer or a device and external peripherals like printers, scanners, and modems among others. In this article, we are going to discuss every point about Serial Ports. What is Serial Port?A serial port is an interface
7 min read
What is Network Port?
In today's technological age, data stands out as a crucial asset, and to make regular advancements, we need to share data among ourselves. We can share data in two ways either using wired connections or the internet. In wired connections, we use connectors called physical ports for the transfer of d
8 min read
What is Port Stealing?
Cyber security is the security of the web and related services related to the web. Cyber security is the way to prevent many cyber attacks from taking place. Cyber security ensures that awareness of the cyber-attacks along with the different forms of cyber attacks are well-known to people so that th
3 min read
What is Ports in Networking?
Whenever any application in one computer sends data to another application of a different computer then it sends using IP Address and MAC Address but how does our computer know that this data is for a specific application and this data is sent by any specific application? There comes the concept of
4 min read
What is Web App
A Web Application (Web App) is a software program that runs on a remote server and is accessed through a web browser over the internet. Unlike traditional apps that require installation on your device, web apps work directly from your browser whether it's Chrome, Safari, or Firefox. How do Web Apps
6 min read
What is HTTP ?
HTTP (Hypertext Transfer Protocol) is a fundamental protocol of the Internet, enabling the transfer of data between a client and a server. It is the foundation of data communication for the World Wide Web. HTTP provides a standard between a web browser and a web server to establish communication. It
5 min read
What is IPv4?
IP stands for Internet Protocol version v4 stands for Version Four (IPv4), is the most widely used system for identifying devices on a network. It uses a set of four numbers, separated by periods (like 192.168.0.1), to give each device a unique address. This address helps data find its way from one
5 min read
What is Internet Protocol (IP)?
The Internet Protocol (IP) is a set of rules that allows computers and other devices to communicate over the Internet. It ensures that information sent from one device reaches the correct destination by using a unique set of numbers known as IP addresses. Whether you're browsing websites, sending em
7 min read
What is a Proxy Firewall?
Prerequisite : Introduction of Firewall Introduction :A firewall proxy provides security by controlling the information going in and out of the network. Firewall proxy servers filter, cache, log, and control requests coming from a client to keep the network secure and free of intruders and viruses.
4 min read