Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 749 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 749 Bytes

Info

pfshare.py script starts an HTTP server which serves files from a given directory and below. The script uses miniupnpc (for port forwarding) so the client's files can be easily served behind NAT.

Dependencies

Usage

For available arguments run the script with -h argument (or --help)
Some usage examples:

$ # serves the current directory behind NAT in a random port
$./pfshare.py

$ # serves my_dir in port 8000
$ ./pfshare -d my_dir -p 8000

$ # serves but only locally (no port forwarding is performed)
$ ./pfshare.py -l

TODO

  • add more fancy stuff into the script