Port number of three elements of network programming
Network programming three elements of port number overview
- Unique identification of each program on the device
- Every network program needs to bind a port number , In addition to determining which machine to send data to , Also make sure which program is sent to .
- Port number range from 0-65535
- To write a network application, you need to bind a port number , Use as much as possible 1024 The above ,1024 The following are basically occupied by the system program .
- Common ports
- mysql: 3306
- oracle: 1521
- web: 80
- tomcat: 8080
- QQ: 4000