Ever thought when http request is made on port 80 then how is chrome able to open so many tabs and not mess their data.

This is a question I stumbled upon and decided to do a bot research on it.

It happens like this:

Suppose you want to open www.example.com. Now the server is listening on port 80 but Chrome is not necessarily sending request on port 80. It can use any port, suppose port 1160.

So, chrome:1160 --->www.example.com:80

Again suppose you want to open www.example2.com

This time chrome will use some other unused port, suppose port 1164

So, chrome:1160 --->www.example2.com:80

So it cam be seen the number of tabs one can open in the browser depends on the number of available port and obviously on the amount of ram available.

Mohit lal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store