Skip to main content

Host Your Own Web Server At Home

Ever wondered to set a webserver on your own and declare access from the Internet? Seems challenging and expensive. Yes it will be if you plan to do it professionally, but setting up a experimental and temporary one is not that hard; trust me. Here I will cover the basic procedure for setting up that experimental server. 

 What we going to need is

  • a Computer ofcourse
  • a webserver software
  • an Internet connection with a Configurable Router


Usually, your hardware resources doesn't matter as long as you are not going to host your Server long-term. Same with the Internet connection until you plan to have a considerable user community.


Web Server Software

A webserver is a software which act as a service to deliver webpages. Typically, any simple, freely available one would do(if you are smart enough you can code your own ;) - that simple!). wampserver or xampp would do.
Note: WAMP stands for Windows, Apache, MySQL, PHP server.
Click Here for a List of WAMPs

Install the server software. Follow the manual, configure it and put it online with a sample webpage.


Router Configuration

Next you have to configure port forwarding settings of the router because most of the time router blocks access to your computer from the web. Open up your web browser and type the local IP address of your Router(probably 192.168.1.1), log into the router using username and password. You'll find these setting in the router setup somewhere titled 'port forwarding' or 'virtual server'. And configure the router to forward port 80 to your computer's IP Address.

Now, you have opened your server to the web. However you have to figure out the public IP address of your router to access your webserver. Simply goto Google and enter 'show my ip' and Google will display your Public IP. That is going to be the web address of your webserver so, note it down. By navigating to that address from any PC, you can access webpages on your server.

Congratulations, you have hosted your own web server!!


Things to Note

These days, most of the devices connected to the Internet are assigned Dynamic IP addresses. So, if this is the case with your PC/router, your web address may change from time to time. Yes, it can be confusing. If you plan big, you can go to your ISP(Internet Service Provider) and ask for a static IP connection, or the really simple way is use a Dynamic DNS service(I'll cover that later).

Comments

Popular posts from this blog

Why Canned Salmon Got Soft Bones

Canned Salmon is a nutritious food, especially for protein and calcium. You can eat it right out of the tin. The fish bones are very soft and tender that they can hardly be noticed. It is a good source of easily digested and absorbed Calcium. But what made them so soft? Is it really safe to eat? because fresh Salmon bones look nothing like it!

Making and Extracting CAB files in Windows

Cabinet files(a.k.a. Diamond files) are the Microsoft Windows Archives. These archives can store multiple files/folders into a single file with or without involving data compression. Since every Windows system is natively compatible with cab files, Windows provide enough facilities to create, extract, or rebuild cab files without requiring additional software.

Why Atmosphere is Thicker at Equator

Atmosphere is the layer of gases that surrounds the Earth retained by Earth's gravity. Have you ever come across the question; what is the shape of the atmosphere? It's fair to think that the atmosphere is shaped somewhat like the Earth itself. because of gravity. We know that the Earth is not a perfect sphere. So, We can assume atmosphere to have a similar shape. But amazingly, the shape of the Atmosphere is affected by a lot of factors and the deformation is even more. Lets see why that is..