HTTP Server

Start a static HTTP server with a single command

A portable shell script that starts a static HTTP server in the current directory. It auto-detects an available server runtime and finds an open port automatically.

Quick Start

curl -fL windpoly.run/http-server.sh | sh

Or with a custom port:

curl -fL windpoly.run/http-server.sh | sh -s -- --port 3000

Features

  • Binds to 0.0.0.0 so you can access it from other devices on your network
  • Default port is 8080 — automatically tries the next port if it's in use (up to 10 attempts)
  • POSIX sh compatible — no bash required

Supported Runtimes

The script tries the following in order and uses the first one found:

RuntimeRequirementCommand Used
Ruby>= 3ruby -run -ehttpd
Python>= 3python3 -m http.server
Node.jsnpxnpx http-server
BusyBoxhttpd appletbusybox httpd
PHPCLIphp -S
Dockerdocker daemondocker run python:slim

Download

Download http-server.sh