How to make a simple HTTP server using python?

python -V
python3 -V
Kali OS Screenshot(By default, kali has both versions of python installed)
Windows 10 Screenshot
python -m simpleHTTPServer#By Default the port is 8080python -m simpleHTTPServer 1234
(port)
Note: If you already have something running on port 8000, you can choose another port by running the server command followed by an alternative port number
python3 -m http.server #By Default the port is 8080python3 -m http.server 1234
(port)
Note: If you already have something running on port 8000, you can choose another port by running the server command followed by an alternative port number

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store