NetworkingBuild a Network

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

<h1>My Web Site</h1>
Welcome.

Step 2 - start web server

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:

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