Create Web Server
Your desktop machine is on the network. So you should be able to make your own web server that serves up your web content for others on the network to see.
A web site can be little more than a folder with one "index.html" file in it, and served up by a programmed called a web server. So let's do that.
Step 1 - create web site folder
- Create a folder (e.g. "MyWebSite")
- Use some file editor (e.g. Notepad or Visual Code) to create a file named
index.html
and add some text to it. Maybe HTML like this:
<h1>My Web Site</h1>
Welcome.
Step 2 - start web server
- Open the command console and change to that folder.
- Assuming you have Python 3 installed, run this command:
python -m http.server
Step 3 - open web site in browser
Then open this URL in your browser: http://localhost:8000
Options
Then try these URLs. They are different ways to do the same thing:
- http://192.168.0.1:8000/
- http://COMPUTERNAME:8000/
If you want to specify another folder (rather than the one the server is running in), or change the port:
python3 -m http.server 8080 --directory /path/to/your/folder