How to effortlessly put in a world wide web server on an Android machine

How to effortlessly put in a world wide web server on an Android machine





androidhero.jpg

Graphic: Jack Wallen

From the workplace of “We do this due to the fact we can” arrives the ability to run a world wide web server on an Android machine. But this isn’t really just any old world wide web server—this is one particular powered by Apache. The server in question is HTTP Server powered by Apache and it can be discovered on the Google Engage in Shop. This server is dependent on Apache two.two and does a wonderful career of serving up web-sites from your mobile machine.

Of system you are asking oneself, “Why do this?” The fact is, there are not a lot of good motives, other than to present you can. But there is the notion of possessing a mobile world wide web server in your pocket that you can check advancement on. What better way to find out how to make primary web-sites than with a server-in-a-pocket! Regardless of why you want this, I am going to present you how to put in it and run a primary web site on your Android machine.

Installation

The installation is pretty easy. Just comply with these techniques:

  1. Open the Google Engage in Shop on your Android machine.
  2. Search for HTTP Server.
  3. Identify and faucet the entry by Tautvydas Andrikys.
  4. Tap Set up.
  5. Make it possible for the installation to total.

At the time the installation completes, you are going to discover a launcher for the app on your property monitor and/or your Application Drawer. Tap the the launcher to open the app. When you initially run it, you must obtain and put in a make of Apache (Determine A).

Determine A

Figure A

Down load the Apache make of your alternative.

To obtain the make, faucet the obtain button (downward pointing arrow). At the time it has downloaded, faucet the identify of the obtain to make it. Right after the obtain is developed, you will be offered with the key monitor.

SEE: Position description: Android developer (Tech Pro Study)

Configuring and beginning your server

In the key window (Determine B), faucet the alter button for Server address and port.

Determine B

Figure B

The HTTP Server key window.

In the ensuing popup (Determine C), faucet to alter the port (if required) and faucet the Server Address dropdown. From the list of probable addresses, you can pick from an IPv4, IPv6, loopback, and an all community address.

Determine C

Figure C

Configuring your port and IP address.

Right after configuring your address and port, faucet the Alter button and you are going to be returned to the key window. Tap the Start out SERVER button and your world wide web server is now up and working. Position a browser to the IP address you selected (assuming your Android machine is on the very same community as the desktop device you are going to check it with) and the default index page will seem (Determine D).

Determine D

Figure D

The default index page for HTTP Server powered by Apache.

When you are all set to insert your have web pages to the server, area the information in the server document root at /storage/emulated//htdocs. If your machine won’t contain a file supervisor, there are pretty a couple of to be discovered on the Google Engage in Shop. Or you can often put in a good text editor (this kind of as anWriter cost-free) and build correct on the machine. Both way, your world wide web server is all set to go.

SEE: Serverless architectures: ten major safety challenges (cost-free TechRepublic PDF)

Have pleasurable

This is not going to make you more successful on your Android machine … except if your target is to hone your HTML skills. But no make any difference your motives for installing this world wide web server on your Android machine, have pleasurable with it.

Also study…

Your views

Does this seem like an exciting venture or will you skip it in favor of more simple duties? Share your acquire with fellow TechRepublic members.






Server Set up

Proxy Server

Server Set up

Leave a Reply

Your email address will not be published.