How To Host A Website On Android - Step By Step Guide

 TechyShacky : The Tech Blog

Normally when it comes to hosting, names which stroke our mind are HostgatorDreamhostBluehost etc. Some of them are cheap while some are expensive. Some offer great support and service while some have great up-time. It became very difficult for a person to choose a hosting site even after watching a big list of hosting sites. So why not host your site yourself?

Android devices are just like blessings for people. They are very dependable, fast, reliable and easy to use. You should thank your Android device’s capabilities by which you can host a website by yourself. But this is not meant to be the perfect solution for anyone and everyone. According to me it is the best and helpful option for developers who want to test their website or people who want to learn and test capabilities of their Android Devices.


How To Host A Website On Android


STEP 1 : Setting up the Server : Important Point


1. First of all you have to download and install a app named KSWEB on your Andriod device. After installing just open it. This app is free for only 6 days, after that you have to pay $2.99 for the full version of this app and in-order to keep your site running. But don’t worry the other alternatives of this app are My FTP Server (Free) and Pixel Media Server (Free). In this article I am using KSWEB because this is the perfect app for hosting.


TechyShacky : The Tech Blog

2. After installing just open this app and, locate the IP Address given on the KSWEB and access it through your computer, or access the ‘localhost:8080′ link through your android phone.

3. Then navigate to “Tools” and click on Start, now your browser should open. If it asks for username and password then let me tell you that the default username and password is ‘admin’ for both.

4. This step is Optional but Recommended — Now select ‘system settings’ and change password from ‘admin’ to something else (whatever you want). Now do this again for MySQL. Now go on KSWEB settings and enter a MySQL Password.

STEP 2 : Making your Server accessible though the Web

1. First of all you have to enter your router’s IP Address in a browser window to access it’s admin page.


2. Now just create a Static IP available for your Android Device. Now access your DHCP settings and select an IP range that your router allows you to use (Select any of these).


3. Now you have to access ‘port forwarding’ and change the ports to 80 and 8080. Doing this will allows your router to communicate with your Android device and it’s server easily with the same port.



4. Now navigate and
access the WiFi settings on your Android Device, and press the name of your WiFi network (long) until you see the pop-up on your screen. Click ‘Modify network’, and check advanced settings on pop-up. Change IP Settings to Static and IP Address to the Static IP set in step 2. (SEE ABOVE)



5. Now you have to find out your IP Address. The most easy way to this is by Googling “What is my IP.” You have to do this because people will use the IP Address to access your site so make sure to capture it correctly or you can open cmd and type ipconfig/all in it and hit enter. It will display your IP address.



Your site will be shown blank. In order to open your site, you have to give IP address to people, so that they can open your site. Also, your Android device has to be on at all times in order for this to work. If you will turn off your android device, your site will go down and unaccessable.


Final Words
To keep your site always on I will recommend you to install Keep Screen On Free. As for the content of your site, install FTP Server, after you change the ports for FTP you can now add files to your site . I know that, this method obviously doesn’t even come close to some of the best hosting services available over the internet, but it’s “free” and simple to set-up and I feel this is quite interesting that’s why I have shared it.


Have you done this before? If not, then you must try this at-least once. Let me know your views on it via comments below.