Home > Common Problem > What is the http port number?

What is the http port number?

青灯夜游
Release: 2023-02-15 18:23:24
Original
89634 people have browsed it

The default port number of the HTTP protocol is "80". You can access the website by adding ":80" to the HTTP address (often referred to as the "website address"); but because the default port numbers for browsing web services are 80, so it can be omitted. Just enter the URL instead of ":80". Port 80 is open for the HTTP Hypertext Transfer Protocol, which is the most commonly used protocol for surfing the Internet. It is mainly used for WWW (World Wide Web), the protocol for transmitting information on the World Wide Web.

What is the http port number?

The operating environment of this tutorial: Windows 7 system, Dell G3 computer.

The default port number of HTTP protocol is "80".

"Port" is the free translation of English port, which can be considered as the outlet for communication between the device and the outside world. Ports can be divided into virtual ports and physical ports. Virtual ports refer to ports inside a computer or a switch router and are invisible. For example, port 80, port 21, port 23, etc. in the computer. Physical ports, also known as interfaces, are visible ports, such as RJ45 network ports on computer backplanes, RJ45 ports on switches, routers, hubs, etc. Phones using RJ11 sockets also fall into the category of physical ports.

Well-known ports are well-known port numbers, ranging from 0 to 1023. These port numbers are generally assigned to some services. For example, port 21 is assigned to the FTP service, port 25 is assigned to the SMTP (Simple Mail Transfer Protocol) service, port 80 is assigned to the HTTP service, port 135 is assigned to the RPC (Remote Procedure Call) service, and so on.

Port 80 is open for HTTP (HyperText Transport Protocol), which is the most commonly used protocol for surfing the Internet. It is mainly used for WWW (World Wide Web), the protocol for transmitting information on the World Wide Web.

You can access the website by adding ": 80" to the HTTP address (often called "website address"), because the default port number for browsing web services is 80, so you only need to enter the URL, no need to enter ":80".

Port 80 and port 8080

Generally 80 is used as the access port of the web server. For example, the IP address of a website is 123.123.123.123, and what we access is 123.123.123.123 :80 Just 80 is the default port and can be omitted. But if there are different sites on a server, you can use another port, such as 123.123.123.123:8080 to access. 8080 is chosen because the two 80s are easy to remember.

Differences and connections:

80 is the default port of the http protocol. When entering the website, the browser (not IE) has already entered the protocol for you, so you enter http:/ /baidu.com, actually access http://baidu.com:80. 8080 is generally used with webcahe, which are completely different. For example, in a Linux server, apache runs port 80 by default, while apache-tomcat runs port 8080 by default. In fact, the port has no practical meaning and is just an interface. It mainly depends on the listening port of the service. .

If you want to read more related articles, please visit PHP Chinese website! !

The above is the detailed content of What is the http port number?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template