This trick might help you to share files with Python in two lines :
Inside a folder type the following command :
1 |
$ python -m SimpleHTTPServer |
The following line should appear :
1 |
Serving HTTP on 0.0.0.0 port 8000 ... |
And that’s it, you have a simple HTTP server running on your computer sharing your current folder.
To change the default port, specify the port as argument :
1 |
$ python -m SimpleHTTPServer 1234 |
Have fun.
Post a Comment