sockets - How do my browser knows it needs to connect to port 443 or port 80 -


this trying do

  1. open browser , start browse https website gmail or google.com

  2. i can see through wireshark name resolution being done dns server.

  3. but after that, connection directly established port 443 (starting tcp handshake)

  4. one thing not able understand is, how browser knows needs connect port 443, tried exploring dns packet, contains destination address, , there no info tells needs connect port 443.

  5. even if say, browser has priority in querying first time, sees if port 443 open connect or connect port 80, not able see such behavior if connect normal http website, in sense that, if go normal http website, there no traffic flow browser indicating had searched first port 443 , went port 80.

i sure missing here, not sure is.

the presence of https: in url tells that.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -