Old Android Phone to WebServer
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:
- Old Android phone ( in my case Huaweii P9 Lite ).
- Internet Connection
- 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
For the Web Server app i used "AWebServer".
Go to he Play Store and install it.
Set Up the Server
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
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.
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.