Skip to content

Commit 8d55322

Browse files
committed
Updated CPython example to use port 5000 by default and added explanation for that
1 parent ec9b06f commit 8d55322

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/httpserver_cpython.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@ def base(request: Request):
1919
return Response(request, "Hello from the CircuitPython HTTP Server!")
2020

2121

22-
server.serve_forever("0.0.0.0")
22+
# Ports below 1024 are reserved for root user only.
23+
# If you want to run this example on a port below 1024, you need to run it as root (or with `sudo`).
24+
server.serve_forever("0.0.0.0", 5000)

0 commit comments

Comments
 (0)