How does the HTTP response find the path to the correct browser window?

If you have two browser windows open and you use them to go to another website, then how does the software know which HTTP response belongs to the browser instance?

Update

The differences seem to be in the incoming TCP port numbers. But what about network messages that are not connected to TCP / UDP? For example, if you open two terminal applications and use ping to send to the same remote server, how does the answer find its way to its terminal instance?

+3
source share
2 answers

, socket . ( TCP 80 443), . , , , .

ping ICMP-, ( ).

+3

TCP-, . , TCP API , . ( )

, HTTP- . , , , , , .

+1

Source: https://habr.com/ru/post/1773204/


All Articles