Old Android Phone to WebServer

by iankoff in Circuits > Mobile

2912 Views, 17 Favorites, 0 Comments

Old Android Phone to WebServer

20210406_210308.jpg

Hello there!

Recently i found old Android phone in my junk box. It is working but the screen is cracked. So i decided to make it small web server.

Supplies

For the project you need:

  1. Old Android phone ( in my case Huaweii P9 Lite ).
  2. Internet Connection
  3. SD Card

Factory Reset

Since i didn't have any important files and photoes in the phone i made Factory Reset to get rid of all the useless files and apps.

Important: Performing an Android factory reset will delete all your data and get the software back to its original state. This means all apps and data stored in your device will be deleted. Make sure to back up all important files and data before you go through this process.

Installing the Web Server

Screenshot_20210406-194912.png

For the Web Server app i used "AWebServer".

Go to he Play Store and install it.

Set Up the Server

Screenshot_20210406-195145.png
Screenshot_20210406-195201.png
Screenshot_20210406-195213.png

When the installation is complete open the app and change some of the settings.

First I decided to leave the port of my server to be 8080, but you can change it.

Second you have to choose where will be your ROOT directory. In my case i selected to be my entire SD Card.

And third you just tap on Start Service.

All Set

Screenshot_20210406-195238.png
Screenshot_20210406-210004.png
Screenshot_20210406-195743.png

After the server was started you will see the internal ip address of your server. In my case it was 192.168.0.100:8080.

Open internet browser and type in the address. You will see the root directory that you selected. Now you have to upload your simple HTML website or files - you decide.

Make It Visible Outside Your Network.

Screenshot 2021-04-06 19.53.59.png
Screenshot 2021-04-06 19.55.00.png
Screenshot 2021-04-06 19.52.53.png

If you want to make your new Web Server visible outside your network you have to forward the port to the servers address.

If you have access to your router open the settings and Bind the IP address and MAC address of the device.This way no other device will get your phone IP adress.

Next you have to open the port and forward it to your phone.

And now your webserver is accessible from everywhere.

I hope you liked my first Instructable.