![]() |
Local Server in Termux |
Hello guys, from this article, You can learn how to run localhost server on your android phone.
If you don't know what is Termux and How it's use. Read this article -Termux beginner ultimate guide
How to run a localhost server on your android phone.
Today in this article, I will show you how to run a localhost web server. We will host our phishing page in this localhost server. So, please read full article and follow the steps carefully. If you have any confusion after read this article, please comment below.
You need these things to do this work correctly. So, first of all complete this step.
Requirement:
1. Termux - Download from play store
2. PHP -
Now, follow these steps carefully.
All commands -
1. At first, open playstore and download Termux application
2. After successfully installed Termux, Type this command -
pkg update
3. After update packages, install PHP following this command
pkg install php
4. Then create a folder in internal storage and name it 'www'
5. Now, move your phishing page in this folder
6. Now, go to Termux and run local server by this command
php -S 127.0.0.1:[port] -t /sdcard/www
*Port = which is that port you want forward over internet. Such as- 80,8080,4444,5656 etc.
7. Now, open your web browser and enter localhost URL. Like that -
127.0.0.1:[port]
localhost:[port]
Now you can successfully run a web server on your android phone.
Thank you for read this article. Stay tuned, stay connected.
Have a good day.
1 Comments
only show in my Android.
ReplyDeleteDon't enter any spam link