Clients and servers
Usually, there are machines on the Internet that can be divided into two; clients and servers. Machines that provide any type of service (such as Web server service or FTP server service) are called servers. And the machines that connect to the server and demand information from them are called clients.
When you are connected to Facebook, your page will be checked by the Facebook server to check your wall. Your PC receives the page and displays it in front of you. Here your PC is not providing any service but is receiving it so it is a user machine or client. But when you chat with someone and exchange photos, your PC acts as a server and once a client. Your computer server plays a role when you send a photo to someone, and when you receive a photo, your computer acts as a client.
A server computer may provide one or more services over the Internet. It may be that a server has special software installed so that it acts as a web server, it can also act as an email or FTP server. The client receives the service by talking to the server as he/she needs it. If your webpage is necessary, the client talks to the web server, talks to the email server to access the email, etc.
Read Also: What is a Web Server
Website on the Internet
Website hosted on your localhost or your computer but not accessible from the internet. But how do the web sites hosted on the server become accessible on the Internet after purchase? To answer this question it is important to know how the internet works.
The Internet is basically a network system where hundreds of computers around the world are tied together. And this network gives each computer the opportunity to interact with each other. Your home computer may be connected to a 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 again directly linked to the local area network of an office or server company. Local ISPs are affiliated with the main ISPs in the country or region. The main ISPs of the country are again connected to the major ISPs abroad through a fiber optic cable, thus making the entire Internet-connected to the whole world computer.
Now, as I said earlier, there are two types of computers on the Internet. Client computers just request and receive the page from the webserver but it does not accept any request itself. The reason your ISP is not connected to the internet even if your computer has a local site host. Your IAEP only supports outgoing traffic and does not support incoming traffic, so your web site is not accessible from the Internet. But if your ISP receives incoming traffic, and if Port 5 is open, your local hosted site will have access to the Internet from anywhere. However, for personal computers, I do not recommend this, which requires more security including firewall setup.
Read Also: How does a web server work?