Create a HTTP server with one command thanks to Python (2024)

Not a new trick by any means, but if you need a simple HTTP Server to serve files from directory, Python makes this easy.

Note: If you don’t have Python installed (most likely you’re on Windows), get an installer from http://python.org/

To run the server:

  • Open a terminal window.
  • Navigate to the directory you want to have the root directory.
  • Execute the command to start the server.
  • Python 2 — python -m SimpleHTTPServer 8000
  • Python 3 — python -m http.server 8000

Then open a web browser at http://localhost:8000/.

This command will start a single threaded HTTP server bound to 0.0.0.0, the (simple) implications of which are that it is able to respond to internal and external requests.

I used port 8000 above but you can chose any port you want, although any port number below 1024 may give you permission denied errors if not executing as root.

More info about the SimpleHTTPServer available at http://docs.python.org/library/simplehttpserver.html

Check out https://ryanblunden.tech for more developer content.

Create a HTTP server with one command thanks to Python (2024)
Top Articles
Integrate 3CX Pro with Microsoft Dynamics CRM
Supply Chain Cost and Materials Management Strategies for Construction
Craigslist Lake Of Ozarks Mo
233 740 In Word Form
Myusu Canvas
Fhsd Lunch Menu
Rescare Training Online
Hannahcpalmer Leaks
Springfield Pridenet
What is international trade and explain its types?
Verap Applicant Portal
Dickdrainersx Jessica Marie
Artmusekitsmikash Rtic Divider/Cutting Board For 65 Gallon Rtic Coolers
781-866-8521
Xxc Renegade 1000 Xxc Price In India Price
TamilMV Proxy List (Jan 2024) 1TamilMV Mirrors To Unblock
Oldeuboi Showtimes Near Marcus Ronnie's Cinema
SunTrust Shareholders Approve Merger with BB&T to Form Truist
How To Breed A Loot Dragon In Dragonvale
Sunrise Senior Living: All 237 Properties | Seniorly
Immersive Gamebox Deep Ellum Reviews
Rocketcert
Eggy Car - Play it Online at Coolmath Games
Ultimate Guide to Visiting Dungeness, UK
Ubisot Store
Phoenix Hotel ab 84 €. Hotels in London - KAYAK
Th 8 Best Army
800 Times 6
Kathy Carrack
Cbs Scores Mlb
John W Creasy Died December 16 2003
Craigslist Auto Iowa
Classy Spa Fort Walton Beach
Nch Naples Patient Portal Login
Why Is 365 Market Troy Mi On My Bank Statement
Nate Tenneson Obituary
Tgh Imaging Powered By Tower Wesley Chapel Photos
Craiglist Quad Cities
Operations Engineering Intern (Spring/Summer 2025), Operations Engineering in Virtual Location - Florida, Florida, United States
How Taking A Temporary Job Affects Unemployment Benefits Can I Get Unemployment If I Was A Contract
Yonajilboobsr
How Fat Freddy's Drop Went From Jam Sessions to the World Stage
Peoplesgamezgiftexchange House Of Fun Coins
Craigslist Horse For Sale By Owner
Movierulz Plz 3
Mydocbill.com/Mr
MERRY AND MARRIED MERRY & MARRIED MERRY + MARRIED MERRY E MARRIED MERRY ; MARRIED MERRY, MARRIED MERRY - MARRIED Trademark Application of Nexus Integrity Group - Serial Number 98485054 :: Justia Trademarks
Contact us
Where do the candidates stand? Thoughts from City Council at-large hopefuls
Litquidity Compensation Survey
Quantum Break: Die Steamversion mit DirectX 11 im Technik-Test mit 15 Grafikkarten
Latest Posts
Article information

Author: Eusebia Nader

Last Updated:

Views: 5808

Rating: 5 / 5 (80 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Eusebia Nader

Birthday: 1994-11-11

Address: Apt. 721 977 Ebert Meadows, Jereville, GA 73618-6603

Phone: +2316203969400

Job: International Farming Consultant

Hobby: Reading, Photography, Shooting, Singing, Magic, Kayaking, Mushroom hunting

Introduction: My name is Eusebia Nader, I am a encouraging, brainy, lively, nice, famous, healthy, clever person who loves writing and wants to share my knowledge and understanding with you.