how can an application use port 80/HTTP without conflicting with browsers?

前端 未结 7 1326
执笔经年
执笔经年 2020-12-02 05:27

If I understand right, applications sometimes use HTTP to send messages, since using other ports is liable to cause firewall problems. But how does that work without conflic

7条回答
  •  眼角桃花
    2020-12-02 06:12

    Outgoing HTTP requests don't happen on port 80. When an application requests a socket, it usually receives one at random. This is the Source port.

    Port 80 is for serving HTTP content (by the server, not the client). This is the Destination port.

    Each browser uses a different Source to generate requests. That way, the packets make it back to the correct application.

提交回复
热议问题