|
|
|
|
|
by kevincox
1865 days ago
|
|
Note that a lot of these bind to 0.0.0.0 by default. This has caused me surprises in the past as I was failing to connect to a host that is available over IPv6. Sometimes it was even intermittent as I would sometime resolve to the IPv4 and sometimes get the IPv6 and fail. For python3 this is easily remedied. python -m http.server -b ::
On most OS configurations this will listen on both IPv4 and IPv6.Or for when you only need local access: python -m http.server -b localhost
|
|