Cover image for code share: My Spontaneous HTTP-Server

code share: My Spontaneous HTTP-Server

hoffmann profile image Peter Hoffmann ・1 min read

(Yes, I know, VSCode includes the wonderful Live Server)

Here is my gaffer tape and spray foam solution that allows you to start your HTTP server couch potato style:


  • shell,
  • zenity
  • netstat
  • docker (trinitronx/python-simplehttpserver)
  • pwgen


  1. ask for directory
  2. check for currently used ports
  3. randomly select a nice free port
  4. generate a unique container name
  5. serve your directory via a HTTP-server
  6. show link to address with option to close server

View the source


Editor guide