Home > other >  HTTP source port is not a port 80, establish a connection with other ports, how explanation
HTTP source port is not a port 80, establish a connection with other ports, how explanation

Time:10-09

Browser access to port 80, the host source port is not necessarily the port 80, how to explain the
That dynamic port is assigned by the who and how to allocate the

CodePudding user response:

Automatically assigned, general doesn't pay attention to the meaning of the source port

CodePudding user response:

Not browser access to port 80, but the browser to access the web server port 80,
The default port 80 port is specified by the HTTP protocol standard, refers to the server on port 80, rather than the client must use port 80,
Browser sends packets to the web server, source port can, of course, is not a port 80, as for the HTTP client binding is what port, literally anything, it doesn't matter, can let the system automatically assigns, may also be bound program itself, this is decided by the programmer, but are generally let the system automatically assigns (call the bind, 0 is to let the system automatically select port),
By the way, port 80 is a standard, not mandatory, the web server if not listen port 80, also is no problem,
  • Related