Home >Common Problem >What is the default http hypertext transfer protocol port?

What is the default http hypertext transfer protocol port?

青灯夜游
青灯夜游Original
2022-08-24 15:42:2510571browse

The default port of http protocol is "port 80". Port 80 is open for the HTTP protocol and is the access port of the web server. You can access the website by adding ":80" to the HTTP address (often referred to as the "website address"); because the default port number for browsing web services is 80, So just enter the URL and the ":80" can be omitted.

What is the default http hypertext transfer protocol port?

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

The default http hypertext transfer protocol port is: port 80.

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 transmitting information on the WWW (World Wide Web). agreement.

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".

Explanation of terms

"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.

The difference and connection between 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, which we access It is 123.123.123.123:80, but 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.

  • 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 , in fact, visit 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 actual The meaning is just an interface, mainly based on the listening port of the service.

For more related knowledge, please visit the FAQ column!

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

Statement:
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