Skip to content

Instantly share code, notes, and snippets.

@Shane24
Created November 21, 2014 12:32
Show Gist options
  • Select an option

  • Save Shane24/8c9535047fabeb17caaa to your computer and use it in GitHub Desktop.

Select an option

Save Shane24/8c9535047fabeb17caaa to your computer and use it in GitHub Desktop.
Simple python server
Open up a terminal and:
$ cd /home/somedir
$ python -m SimpleHTTPServer
Server will start in port 8000. You will get the message:
Serving HTTP on 0.0.0.0 port 8000 ...
Now open a browser and type the following address:
http://192.168.1.2:8000 or http://127.0.0.1:8000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment