located in the current directory where you have an .HTML file
python3 -m http.server 51000

-m is to execute a python module
http.server is a module for python3
51000 is the port
Let’s say you port forwarded 54000 to 51000.
The Python 3 http.server module is software that allows you to turn any directory into a temporary web server, serving files located there.
Python 3 doesn’t create or require the /var/www directory to run. You could use Python 3 to serve files from any other directory, such as /home/user/my_files/.
I have the following content in index.html:

Let’s say you port forwarded of the external port 54000 to internal port 51000.
You can view the web page with the public IP, external port or router port and HTML file.
