A minimal, zero-dependency multi-threaded HTTP server for local web development.
- 🌐 Network Accessible: Bound to
0.0.0.0so you can test your website on mobile devices or other computers in the same Wi-Fi network. - 🚀 Multi-Threaded: Uses
ThreadingTCPServerto handle multiple requests and assets concurrently. - 🔓 CORS Enabled: Sends
Access-Control-Allow-Origin: *headers for easier API, font, and asset testing. - 🛠️ Automatic Port Reuse: Reduces "Address already in use" errors during quick restarts.
- 📂 Static File Serving: Automatically serves HTML, CSS, JavaScript, images, and other static files.
-
Clone or download this repository.
-
Open a terminal in the directory containing your website files.
-
Run the server:
python server.py
-
Open your browser: http://localhost:8000
To access the server from a smartphone, tablet, or another computer:
- Make sure the device is connected to the same Wi-Fi network.
- Start the server.
- Use your computer's local IP address shown in the terminal:
http://YOUR_LOCAL_IP:8000
- Python 3.x
- No external dependencies required
This project is licensed under the MIT License.
If you find a bug, have a feature request, or want to suggest an improvement, feel free to open an issue in the Issues tab at the top of this repository!