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.
curl -fL windpoly.run/http-server.sh | shOr with a custom port:
curl -fL windpoly.run/http-server.sh | sh -s -- --port 30000.0.0.0 so you can access it from other devices on your networksh compatible — no bash requiredThe script tries the following in order and uses the first one found:
| Runtime | Requirement | Command Used |
|---|---|---|
| Ruby | >= 3 | ruby -run -ehttpd |
| Python | >= 3 | python3 -m http.server |
| Node.js | npx | npx http-server |
| BusyBox | httpd applet | busybox httpd |
| PHP | CLI | php -S |
| Docker | docker daemon | docker run python:slim |