What is Web Server?
Normally the server is able to access all pages from the Internet to your computer browser. So what is this “web server”? Actually, “server” means no giant computer ware, not even a single computer. so what? “Server” is basically a software program that works on HTTP protocols to reach web pages to users requesting. It does not require a huge computing system to operate, it is possible to run a simple USB drive (PenDrive) with XAMPP server software.
Computers that are used to hosting websites must have the necessity of installing a server program. But yes, those who provide you website hosting services have many dedicated computing facilities. They have server applications such as Apache, IIS, or Enginix (NGNIX) installed on their large computer. Or server build-in operating systems such as IIS (Internet Information Server), or Ubuntu Linux, is also possible to provide server services.
That is the question of the professional server, but by the term, you can also use your computer as a server. If your computer is currently running on the Windows operating system, you can create a local server or localhost to your PC by launching the IIS service from the “Programs and Features” option in Control Panel. Once IAS is enabled, you can run any server on the server by entering any HTML file in the “c: \ inetpub \ wwwroot” directory. Again you can install a small program called XAMPP on a computer and run the php script. Many people have run PHP Script on their PC using the software “WordPress”, “Joomla” and so on. After creating your PC server, you can view your local hosted pages using any web browser, and you can access your server with any computer or smartphone on the same network connected to your PC.
So you’ve already come to know the real explanation of the term “web server”. The server helps to serve web pages from one computer to another; This is the basic term. But to complete this term, many processes have to be completed, the rest of the article will discuss these issues.
How does work the web server?
To visit the site when you enter a link in the web browser; The browser divides that link into three parts. First, it looks at Protocol (HTTP) and then trying to find the server name (http://topnetworkingworld.com) and when the server gets the name, it will try to find the requested page (“/ web-server /”). First of all, when trying to find the IP address of the server to the browser name server, if the IP address is received, then the server tries to establish a relationship with your web browser and connects to port 80. There are many ports with an IP address and different ports are used for various purposes. For example, you request any page or file from the server via the HTTP protocol, but your browser will connect to port 80. If you want to upload or manage any files in FTP protocol, then connect it to port 21. You can also think of the port a lot of doors. For example, we use the outside door to go out of the house and use the stairs to make the trip. There are different ports for different purposes.
So once the browser is connected to the IP address and the proper port, send a request to the server to get the gate request. The server accepts the request and finds out on its own system and asks if it has permission to give it to the user. If all is well, then the web server will send HTML pages to the browser. The server has cookies and sends the pages. The browser publishes HTML tags from the HTML page and renders the page accordingly and publishes it on your front screen.
So this is the basic process of server work, if it did not know so soon, then hopefully it’s a big idea. But to know more about these issues, it is important to know more about IP address, port, protocol, name server, domain etc.
Difference between client and server:
Generally, there are machines on the Internet that can be divided into two parts; Clients and Servers The machines that offer any type of service (such as Web server service or FTP server service) are called servers. The machines that connect to the server and ask for information from the server are called clients.
When you connect with Facebook, to check your Wall, the page is served by the Facebook server. Your PC receives that page and displays it in front of you. Here your PC is not offering any services but it is a user machine or client. But when you chat with others and share photos with you, your PC once works as a server and one client. When you send a photo to someone, your computer plays the role of the server and when your computer receives a photo, your computer acts as a client.
A server computer can provide one or more services on the Internet. It may be that a particular software is installed on a server, so it is working as a web server, and can also function as an email or FTP server. The client accepts services by talking to the server according to his needs. If your webpage is needed, speak to the client web server, speak to the email server to access the email, etc.
How to Publish your website on Internet?
Your local host or website hosted on your computer but is not accessible from the Internet. But how are the Web sites hosted after the server is available on the Internet? To know the answer to this question is necessary to know how the Internet works.
The Internet is basically a networking system that caters to the world’s Billions computers. And this network allows each computer to establish relationships with each other. Your home computer may be connected with landline copper cable or DSL or mobile broadband. This line provides you with a local Internet Service Provider (ISP). These local internet service providers are directly connected to the office or server company’s local area network. Local ISPs are related to the main ISP in the country’s main or area. The main ISPs of the country are again connected with the major ISPs through Fiber Optic Cable and in this way the entire world computer is connected to the same line and creates the entire Internet.
Now I have said earlier on the internet there are two types of computers. Client computers receive requests only from web servers, but it does not accept requests from themselves. Since your computer is hosted on a local site, your ISP is not connected to the Internet. Your IAP just supports Going Traffic Out and does not support incoming traffic, so your website is not accessible from the Internet. However, if your ISP receives incomparable traffic and Port 80 is open then your local hosted site will be accessed from anywhere on the Internet. But for the personal computer, I do not think so, it requires more security with firewall setup.