Home >Common Problem >What is the range of port numbers?
The port number range is from 0 to 65535. Ports are marked by port numbers, which are only integers. Their function is to represent the services provided by a specific process in a computer.
#The operating environment of this article: windows10 system, thinkpad t480 computer.
The ports of an IP address are numbered by 16 bits, and there can be up to 65536 ports. Ports are marked by port numbers, which are only integers ranging from 0 to 65535.
Function:
The main function of the port number is to represent the services provided by a specific process in a computer. Computers in the network represent their identities through IP addresses. It can only represent a specific computer, but one computer can provide many services at the same time, such as database services, FTP services, Web services, etc. We use The port number is used to distinguish these different services provided by the same computer. For example, the common port number 21 represents the FTP service, the port number 23 represents the Telnet service, and the port number 25 refers to the SMTP service. Port numbers are generally used as 4-digit integers. Port numbers cannot be repeated on the same computer. Otherwise, exceptions such as port number conflicts will occur.
Free learning video sharing: php video tutorial
The above is the detailed content of What is the range of port numbers?. For more information, please follow other related articles on the PHP Chinese website!