Skip to content

Instantly share code, notes, and snippets.

@soukiassianb
Last active August 29, 2015 14:18
Show Gist options
  • Save soukiassianb/1d796037dd17f1cabf70 to your computer and use it in GitHub Desktop.
Save soukiassianb/1d796037dd17f1cabf70 to your computer and use it in GitHub Desktop.
Make your own python server
# get to the directory you want to share
cd <mydirectory>
# step 1: Get your ip adress
python
import socket
print socket.gethostbyname(socket.gethostname())
quit() # back to shell
# step 2: Create python server
python -m SimpleHTTPServer 8000
# BOOM
# Now you can visit the adress -> youripadress:8000, navigate and download your files from anywhere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment