You do not need expensive servers to host your website. You can host it on your laptop or PC. But, if space is your concern then there is another way you can host your website. It is possible to host your website on your Android device. You can now host a dynamic website on an Android. Doing this will remove the costs of hosting the site in a paid server and you will also reduce the requirement of space. Here’s how to host a website on Android.

Host Website on Android

What you need is an app called Tiny Web Server. It is available for free on the Google Play Store. In this tutorial, we will be hosting a simple barebone HTML file and browsing it from another device.

To get started, download Tiny Web Server. Basically, this tool does not require any configuration as it is that simple to use. But we will be going through some of the options very briefly. After installing the app, open it. You will be on the app’s main screen. There, you will find the option to change the server path. Also, you can define a default charset. If your site is in English, you do not need to use this option ever. But if the language if the site is different. You can use this option to use a charset. Host a website on Android For the sake of the tutorial, create a simple HTML file on your desktop, laptop or even your smartphone. You can use the HTML code below or use your own file.

<html>
<head>
</head>
<body> <h1> Welcome to my site. </h1>
<p>This is a demo
</body>
</html>

After you have copied the HTML file to your Android device, open Tiny Web Server app and select Start Server. Select the HTML file you’ve just copied. Add /index.html at the end. You have successfully hosted your first site on an Android device.

So how can other people view your site? You can use this app with any dynamic DNS update client (example: DuckDNS) to make your site available to people on a network. Keep in mind that your device needs to be online. This is particularly useful if your website is relatively basic and you need to host it for a college project but don’t want to spend money on web hosting. If you have a spare old Android device lying around, you can make good use of it.

Also Read:

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here