Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,156,496 members, 7,830,497 topics. Date: Thursday, 16 May 2024 at 11:48 PM

How To Turn Your Android Phone Into A Dedicated Server In 5minutes Or Less - Phones - Nairaland

Nairaland Forum / Science/Technology / Phones / How To Turn Your Android Phone Into A Dedicated Server In 5minutes Or Less (1397 Views)

How To Get 50 Instagram Followers Evry 5minutes / 5 Ways Of Unlocking Pattern Lock On Any Android Device In Less Than 5minutes / See What Nigeria Turn My Phone Into [photo] (2) (3) (4)

(1) (Reply)

How To Turn Your Android Phone Into A Dedicated Server In 5minutes Or Less by Chalatanace(m): 3:23pm On Mar 17, 2016
There are several web server apps available for Android as well. Even some supporting/including things like PHP and MySQL. Some examples:

AndroPHP

Ulti Server: PHP, MySQL, PMA

KSWEB: server + PHP + MySQL

NAMP nginx android web server

I guess that should get you started if you want to solve your issue using Android.

Need a low-powered device to run your website? Need the space your web server is taking up? Want to share some potentially controversial information with a select group of people but don’t have the financial resources to run a full-scale web server?

The solution to all of these problems — and some others — is to host your web page on an Android device, turning your smartphone or tablet into a web server installing Your Server Software on Android

Various server software apps are available for Android. These range from the straightforward PAW Server for Android designed to run basic, non-dynamic sites (although a PHP plugin is available for PAW) to Ulti Server: PHP, MySQL, PMA, which, as the name suggests, supports the use of database driven websites written in PHP.

We’re using PAW Server for this tutorial, with which we’ll upload a basic index.html file and browse to from a PC on the same network to illustrate using Android as a web server. Other apps rely on all of the same principles — the same concepts and processes are required to serve a web page to a viewing browser.

Configuring PAW Server



With PAW Server installed on your device, run the app, pressing thestart button as instructed. A URL will be displayed, so browse to this on your desktop computer. Here you’ll be invited to login, using the displayed credentials, and open the server console.

This is a useful app with a variety of features, from making phone calls and sending messages to viewing media. Basically, you can use PAW Server as a remote access console to your phone or tablet as well as serving web pages.


The Inexpensive Way to Power a Website
Websites do not need expensive servers; they don’t even needinexpensive servers. We’re now at the stage where a dynamic, database-driven website can be hosted on a modest device. For instance, it might be a common desktop PC or laptop, but as this takes up a lot of space, you can scale back. We’ve already seen howthe Raspberry Pi can be used as a web server, and it’s also possible to use an Android smartphone or tabletin the same way.

Your hosting costs are immediately removed, and as long as the page views are low, you should find that your website runs without locking up the device (although you shouldn’t be expecting to be able to multitask while the site is running!).

Installing Your Server Software on Android
Various server software apps are available for Android. These range from the straightforward PAW Server for Android designed to run basic, non-dynamic sites (although a PHP plugin is available for PAW) to Ulti Server: PHP, MySQL, PMA, which, as the name suggests, supports the use of database driven websites written in PHP.

We’re using PAW Server for this tutorial, with which we’ll upload a basic index.html file and browse to from a PC on the same network to illustrate using Android as a web server. Other apps rely on all of the same principles — the same concepts and processes are required to serve a web page to a viewing browser.

Configuring PAW Server


With PAW Server installed on your device, run the app, pressing thestart button as instructed. A URL will be displayed, so browse to this on your desktop computer. Here you’ll be invited to login, using the displayed credentials, and open the server console.

This is a useful app with a variety of features, from making phone calls and sending messages to viewing media. Basically, you can use PAW Server as a remote access console to your phone or tablet as well as serving web pages.

Here’s a look at what it can do:


Adding Index.html to PAW Server...

Source: brainlodge..com

More...

1 Like 1 Share

Re: How To Turn Your Android Phone Into A Dedicated Server In 5minutes Or Less by Chalatanace(m): 3:25pm On Mar 17, 2016
To use PAW Server as a web server, you’ll need to create an index.htmlfile and upload it to the correct folder. You can do this on your desktop using a text editor like Notepad++ (one of our favorite Windows applications) or on Android using a HTML or text editor.



With your file created, copy it into the /paw/html/ directory on your Android device — this is easily done by expanding the Media section in the PAW Server console and selecting File Manager. From here, browse tosdcard/paw/html, click Choose File, select the HTML file you just created and click Upload.

To view the file in your PC browser, you’ll need to restart PAW. On yourtablet, tap the Stop button in PAW Server, then Start again. Navigate in your browser once again to the displayed URL, this time adding/index.html to the end.



Congratulations, you converted your Android device into a web server! The example shown is basic and lacks styling; CSS can be easily added (and is simple to learn) with the usual included instruction in the HTML file.

Receive External Hits On Your Android Powered Website
As you may have discerned from the screenshots, I’ve used a tablet for this tutorial. However, there is no reason why you shouldn’t use a smartphone.

Whichever Android device you select, when used in conjunction with adynamic DNS update client (of these, No-IP.com has an Android app), you’ll be able to serve web pages to computers beyond your home or corporate network. These apps link your device’s dynamic IP address to a dedicated URL, via the client app that you install.

(Of course if your ISP provides you with a static IP, all you will need to do is assign your Android web server a static IP address, but this may prove unworkable with some routers, so the No-IP.com app is the better option. Various unofficial No-IP.com clients are available, with Dynamic DNS Client a strong option.

Uses for an Android Web Server
We’ve covered various ways in which you might employ an Android-powered web server throughout this feature, but just in case you missed them, let’s remind ourselves.

To begin with, you can use an Android web server to host test versions of websites. This is useful for ironing out bugs and tweaking the design before the site goes live, and saves you installing development websites locally which then have to be painstakingly migrated to your server when ready.

If the website is relatively basic, you can use Android as a host and save money on powering an expensive server. Similarly, the space taken up by a server or PC running as a web server can be reclaimed, perhaps using the server for a different purpose. The space occupied with a PC running a web server could now be taken by a person, doing a job.

Have you build an Android-powered web server? Curious and want to know more? Leave a comment below, and we’ll talk.

Source: http://brainlodge..com.ng/2016/03/how-to-turn-your-android-phone-into-web.html
Re: How To Turn Your Android Phone Into A Dedicated Server In 5minutes Or Less by Bobody(m): 3:32pm On Mar 17, 2016
Lalasticlala, adewasco2k, Slyr0x

1 Like

(1) (Reply)

My Android Tecno Y3 / Who Should I Contact: Diamond Bank Or MTN, My Money Is Gone (pics) / Pictures Of The New Iphone 7 Have Been Leaked. And You MIGHT Be A Little D

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 42
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.