A port on computer networks is a natural number that is written in the OSI protocol header. It is intended to identify the process of the recipient of the package in one host.
As a rule, in a user space on a host with an installed OS, several processes occur simultaneously, and a specific program runs in each of them. If these programs affect the computer network, the “shell” from time to time receives through it an IP packet, which is intended for one of the programs.
How it works?
If the program uses data exchange over the network, this process can occur as follows:
- The OS is prompted for a specific port number. In this case, the system can both provide it to the program and prohibit the transfer (this happens in cases where this port number is already used by another application).
- , . .
(8080, 80 )? ( ). , :
TCP, , .
, . .
, - , . , , , 80 8080 . , .
, . . , 8080. ?
, TCP HTTP. Tomcat, Java.
TCP- 8080 , . , , . , , .
HTTP, 8080, - -. IMAP, IMAP , , SSL, , .
, TCP- 8080 . TCP/IP. IP , TCP . , , 8080 , . 8080 - TCP UDP. UDP 8080 .
8080 Windows 7?
«» . «» «». «» « ». , . , TCP, .
8080? .
- HTTP TCP
HTTP TCP, . -.
HTTP- . TCP- TCP, . , HTTP- , TCP-. - HTTP, , URL- HTTP. , TCP , .
, HTTP- http://192.0.2.1:8080/operation, «192.0.2.1:8080» «Host» HTTP-, 8080 192.0.2.1.
, HTTP- -, TCP- TCP , .
, - 198281.100.1 3128, http://192.0.2.1:8080/operation, «192.0.2.1: 8080 » « Host », « Request-Line ». TCP- 198.51.100.1:3128. , - HTTP (- 8080) .
8080?
, «Host» HTTP/1.1. HTTP/1.0 . , , . HTTP/1.0, -, - « ». «Host» .
- TCP, TCP . HTTP, . , - TCP, - .
8080?
- TCP ( ), , , - . , . -, , . - TCP <forward> , RTCP_install_dir / httptcp / registration.xml. , 8080 – , .
198.51.100.1 IP- -. , 3333 -, 8080 : www. Example. com:
<Forward bind = "198.51.100.1:3333" destination = "www. example. com:8080" />
, . HTTP-.
HTTP TCP
, - HTTP TCP, , : 192.0.2.1:8080 192.0.2.1:8081, -, 198.51.100.1. IP-, , , . HTTP- HTTP--, TCP . HTTP , 192.0.2.1:8080, , . 192.0.2.1:8081, .
TCP, TCP--, <forward> :
<Forward bind = "198.51.100.1:3333" destination = "192.0.2.1:8080" />
<Forward bind = "198.51.100.1:3334" destination = "192.0.2.1:8081" />
«192.0.2.1:8080» «198.51.100.1:3333», - «192.0.2.1:8081» «198.51.100.1:3334». ( TCP) .
- (3333), , . , - 3333. - , 192.0.2.1:8080 ( ). HTTP-, - HTTP, HTTP-.
URL- . - TCP, TCP .
, , HTTP, : <forward bind = "198.51.100.1:3333" destination = "192.0.2.1:8080" type = "HTTP" /> .
?
- HTTP- , . , , URL-, HTTP-, POST. , , <forward>, . , , 192.0.2.1:8080 HTTP- 198.51.100.1:3333.
, -, URL-, http:// 192.0.2.1:8080/ operation, http:// 198.51.100.1:3333/ operation. , URL-, -.
TCP (198.51.100.1:3333) «», , , . . , <forward>, , , 3333, : 192.0.2.1:8080, «Host» . , , .