Last active
August 29, 2015 14:18
-
-
Save soukiassianb/1d796037dd17f1cabf70 to your computer and use it in GitHub Desktop.
Make your own python server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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