website/content/blog/quickpythonhttp.md

15 lines
418 B
Markdown
Raw Permalink Normal View History

2020-04-18 18:41:55 -04:00
---
title: "Quick Python: HTTP Server"
date: 2020-04-18T17:15:09-04:00
draft: false
2022-01-02 14:24:29 -05:00
tags: ["Python"]
2023-01-05 14:04:45 -05:00
medium_enabled: true
2020-04-18 18:41:55 -04:00
---
You can use Python to quickly spin up a HTTP server. A common use case for me is to quickly transfer files to mobile devices in my internal network.
```python
python -m http.server
```
This will likely start an HTTP server on port 8000 on your machine listening to all network interfaces.