Monekrun You are sitting in front of a computer screen, visiting WireBD and seeing all the great new tech articles published. Tell your friend about this and send him the link (https://google.com/mail) and say, “Look, this is an excellent email service.” Your friend entered the link in his browser and went straight to this website. The web browser requested the web server for the page, and the page came out in diameter! But what happened behind it?
When you enter a link in a web browser to visit that site; The browser divides the link into three. It first looks at the protocol (HTTP), then tries to find the server name (https://google.com) and tries to find the requested page when the server name is received (“/mail/”). Firstly the browser name tries to know the IP address of that server to the server, after getting the IP address your web browser tries to connect to that machine and connects to port 1.
Read Also: What is a dedicated server and why?
There are many ports with one IP address and different ports are used for different purposes. For example, suppose you request a page or file from the webserver via the HTTP protocol, but your browser will connect to port 1. Again if you want to upload or manage a file in FTP protocol, it will connect to port 21. So you can think of the port a lot. As we use the exterior door to go out of the house and the stairs to go up to the roof. Just as there are different ports for different tasks.
So once the browser connects to the IP address and the correct port, it sends a request to the server asking for a page. Receives the server request and looks at its own system to see if the page contains the request and whether it is allowed to be given to that user.
If all goes well, then the webserver sends the HTML page to the browser. The page contains server cookies and sends. The browser reads the HTML tags from the HTML page and renders the page accordingly, displaying it on the screen in front of you.
Read Also: What is a Web Server
So this is the basic process of working the server, if you did not know it in the long run, now I hope to have a rough idea. However, to know more deeply about these topics, more details about IP addresses, ports, protocols, name servers, domains, etc. are necessary. Some of these topics I have already discussed in this blog and I will try to discuss the rest later.