you can download termux in your android phone....where you can download packages like php, apache (web server),
then you will able to make server on localhost..
you can also download ngrok server for running server on localhost....
for more information go to :-
first you have to update and upgrade the terminal by following commands
pkg update && pkg upgrade
after that you type the following command
pkg install php
pkg install apache
for starting the apache server
type following command
i hope you must have understood Abhay