In this Post, We have discussed a very interesting topic about How to Make your Android Device a webserver?
Now, I have telling step by step Process. So, Please Read Carefully and if you Have Shown any kind of difficulty Please Contact me.
If you have any old phone so you can use your old phone as a webserver.
So without wasting more time we will start our process.
Step – 1. Host Your Site on Local Host.
Hear I Have Show you Some applications for Android device which you can Host your Site on Localhost. (Click on Link And Install Application on your device.
Here I have prefer First application Ksweb because this application through you can Host static Site and PHP site on Localhost and you can go with other apps also.
So, Fist of all install ksweb on your device. (In Original Application which is on play store is free for Some days. So you can go with mod apk.)
After Install app go to tools and turn on Apache server then find PHPMyAdmin and click on admin>apache.
Now go to your file manager and Put your sites all File on htdoc Folder.
Step – 2. Install Ubuntu on termux.
(Click on app icon and download termux.)
So after install termux. Run below Command in termux and install Ubuntu in termux. Means now your termux is your Ubuntu terminal.
Command:-
 pkg install wget openssl-tool proot -y && hash -r && wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/Installer/Ubuntu/ubuntu.sh && bash ubuntu.sh
Now after run this command you can use ubuntu using ./start-ubuntu.shcommand.
Step – 3. Host Site Localhost to Web.
Now we have Put localhost on web using ngrok tool.
So First goto Ngrok.com and Sign up.Then Open termux and run Bellow Mentione Command.
 pkg update && pkg upgrade -y
Using this command upgrade your termux repositary.
 ./start-ubuntu.sh
 pkg install zip wget -y && wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm.zip
Using this two command ngrok file will download in your ubuntu root Directory.
 unzip ngrok-stable-linux-arm.zip && chmod +x ngrok
Using this command ngrok file is unzip and accessible. Now we will configure our device to ngrok site using authentication key this key will be on your account which you have created on ngrok website and run bellow command:-
 ./ngrok authtoken (authentication key)
Now All steps will be clear and now go and copy your localhost site url.
 ./ngrok http (Port no./Copied site url)
When you run this command ngrok will be put your localhost site on web and you can acess your site using domain name which have you seen on your screen.
Step – 4. Add Custom Domain Name.
Now go to your domain name provider site and then find Domain Forwarding and add your site domain name which have provided by ngrok tool. Then after some time you can acess your site with Custom Domain Name.
So, If you Like my content Please Subscribe my channel and share with your friends
Guys if you Facing any difficulty go to contect us section and Contect me.
This topic related video will be comming soon.so please wait and Don’t forgot to subscribe my channel.