If you need a quick web server running and you don’t want to mess with setting up apache or something similar, then Python can help. Python comes with a simple builtin HTTP server.

Assume that I would like to share the directory which is located at   /Users/BugWrangler/Desktop/{Any Share directory} and my local network IP address is 192.168.0.107 (other words 127.0.0.1)

Navigate to same directory and enter the following command

python Simple HTTP Server

Now, Navigate to browser in the same machine or other machine which is located in same network.

Navigate to the below address :

Python HTTP Server

If the directory has a file named index.html, that file will be served as the initial file. If there is no index.html, then the files in the directory will be listed.

If you wish to change the port that’s used start the program via