Uploaded August 2025 | Updated November 2026, 10 hours ago
So today I show you how to on any smart devices "phone,smart tv,etc" use termux to host a simple apache web server as well as basics for portfowarding and setting up a dynamic dns sub domain. This video goes over a lot so it took a lot of retries. If I continue this mini series I will show basic html how to have the server loop or autostart and a few other tricks to have the app auto launch maybe even setting up openssh so we won't need the screen at all.
-----------------------------------------------------------------------------------------------------------
Instructions with commands you can copy and paste.
-----------------------------------------------------------------------------------------------------------
Step 1. install termux / update and upgrade if you had it already
---links for termux---
apps.apple.com/us/app/termux/id6738933789
play.google.com/store/apps/details?id=com.termux&hl=en_US
github.com/termux/termux-app
---links for termux---
Step 2. pkg install apache2
---make sure you have enough space---
step 3. configure httpd.conf / make shortcut to it
----------------------------------------------------
nano $PREFIX/etc/apache2/httpd.conf
----------------------------------------------------
step 4. choose new htdocs location. "where site is stored"
step 5. port-foward 8080 and your device ip
step 6. get public ip "google what is my ip
step 7. make a dynamic dns "duckdns,cloudflard tunnels,etc" further down the script is a duckdns script example you can find one on duckdns faq as well.
step 8. run the server / make a shortcut that also syncs dns
----------------------------------------------------
apachectl
or
apachectl -k start
----------------------------------------------------
step 9. auto sync public ip to dns provider "duckdns"
---simple script edit curl command first save as a .sh file---
termux-wake-lock
sleep 2
echo Keep Session On Complete
sleep 2
curl "duckdns.org/update?domains=DOMAINNAMEHERE&token=YOURTOKENHERE&ip="
sleep 2
echo DNS sync successfull starting server
sleep 2
apachectl -k start
---simple script edit curl command first save as a .sh file---
step 10. automate the start how ever you want or manually launch will cover a few ways in the next video as well as open ssh if you need help just be patient.
-----------------------------------------------------------------------------------------------------------
Last Video " youtube.com/watch?v=fw0k0GwbZ50 "
-----------------------------------------------------------------------------------------------------------
Please Visit: " everythingdigital1.com "
So today I show you how to on any smart devices "phone,smart tv,etc" use termux to host a simple apache web server as well as basics for portfowarding and setting up a dynamic dns sub domain. This video goes over a lot so it took a lot of retries. If I continue this mini series I will show basic html how to have the server loop or autostart and a few other tricks to have the app auto launch maybe even setting up openssh so we won't need the screen at all.
-----------------------------------------------------------------------------------------------------------
Instructions with commands you can copy and paste.
-----------------------------------------------------------------------------------------------------------
Step 1. install termux / update and upgrade if you had it already
---links for termux---
apps.apple.com/us/app/termux/id6738933789
play.google.com/store/apps/details?id=com.termux&hl=en_US
github.com/termux/termux-app
---links for termux---
Step 2. pkg install apache2
---make sure you have enough space---
step 3. configure httpd.conf / make shortcut to it
----------------------------------------------------
nano $PREFIX/etc/apache2/httpd.conf
----------------------------------------------------
step 4. choose new htdocs location. "where site is stored"
step 5. port-foward 8080 and your device ip
step 6. get public ip "google what is my ip
step 7. make a dynamic dns "duckdns,cloudflard tunnels,etc" further down the script is a duckdns script example you can find one on duckdns faq as well.
step 8. run the server / make a shortcut that also syncs dns
----------------------------------------------------
apachectl
or
apachectl -k start
----------------------------------------------------
step 9. auto sync public ip to dns provider "duckdns"
---simple script edit curl command first save as a .sh file---
termux-wake-lock
sleep 2
echo Keep Session On Complete
sleep 2
curl "duckdns.org/update?domains=DOMAINNAMEHERE&token=YOURTOKENHERE&ip="
sleep 2
echo DNS sync successfull starting server
sleep 2
apachectl -k start
---simple script edit curl command first save as a .sh file---
step 10. automate the start how ever you want or manually launch will cover a few ways in the next video as well as open ssh if you need help just be patient.
-----------------------------------------------------------------------------------------------------------
Last Video " youtube.com/watch?v=fw0k0GwbZ50 "
-----------------------------------------------------------------------------------------------------------
Please Visit: " everythingdigital1.com "





