Any computer that stays switched on can host an 8TML site from your home: a PC, a Raspberry Pi or a NAS. Readers on your home network reach it right away; readers on the internet need a few router settings.
A quick test server
For a first try, Python’s built-in web server is enough. Put your pages into a folder and start it there:
python3 -m http.server 8080 --directory mysite
Then open http://192.168.1.20:8080/ on a machine of your home network, with your computer’s own address in place of 192.168.1.20. The client asks for index.8tml by itself. Python sends .8tml and .8ss files as application/octet-stream, which clients accept.
Python’s server is made for testing and offers no protection for a public site: keep it on your home network. It also matches file names exactly on Linux, so /NEWS.8TML won’t find news.8tml (Windows and macOS usually ignore the case).
A permanent server
For a site that stays up, use a real web server such as Apache, nginx or lighttpd. On a Raspberry Pi, sudo apt install apache2 installs Apache and serves /var/www/html. Add the settings from Hosting 8TML pages: the content type, plain HTTP, and finding files regardless of case.
Give the computer a fixed address on your home network (most routers can reserve one for it), so links and bookmarks keep working.
Reaching it from the internet
- Port forwarding: in your router, forward one port (for example 80 or 8080) to the web server’s port on that one computer.
- A name: your internet address may change. A dynamic DNS service gives you a name that follows it, such as
mysite.example.net; many routers have one built in. - The port in the address: some providers block incoming port 80. Any other port works too, as long as it is in the address:
http://mysite.example.net:8080/.
Some providers share one internet address between many customers (carrier-grade NAT). Then no port forwarding can work: if the internet address your router shows differs from the one a “what is my IP” website shows, you’re probably behind one. Ask your provider for a public address, or use a web hosting account instead.
Before you open a port
- A forwarded port is open to everyone on the internet, and it is found within hours. Only a real web server belongs behind it.
- Forward one port to one computer, and serve only your site’s folder, never your home folder or a whole disk.
- Keep that computer and its web server updated.
- Never forward a port to a device’s remote control, file sharing or setup page, such as a C64 Ultimate (see Hosting on a C64 Ultimate), and never to an HTTPS proxy.
If this is more than you want to look after, a web hosting account or a plot on T8wn hosts your pages without any of it.