Skip to content

Instantly share code, notes, and snippets.

@renatoassis01
Created September 1, 2016 18:08
Show Gist options
  • Save renatoassis01/a1f05177bd1a47e91f3e3a9cb262e6c7 to your computer and use it in GitHub Desktop.
Save renatoassis01/a1f05177bd1a47e91f3e3a9cb262e6c7 to your computer and use it in GitHub Desktop.
import SocketServer
import SimpleHTTPServer
PORT = 5000
Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
httpd = SocketServer.TCPServer(("", PORT), Handler)
print("Running in port: ", PORT)
httpd.serve_forever()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment