You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/examples.rst
+6-3
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,9 @@ Although there is nothing wrong with this approach, from the version 8.0.0 of Ci
27
27
`it is possible to use the environment variables <https://docs.circuitpython.org/en/latest/docs/environment.html#circuitpython-behavior>`_
28
28
defined in ``settings.toml`` file to store secrets and configure the WiFi network.
29
29
30
+
By default the library uses ``0.0.0.0`` and port ``5000`` for the server, as port ``80`` is reserved for the CircuitPython Web Workflow.
31
+
If you want to use port ``80`` , you need to set ``CIRCUITPY_WEB_API_PORT`` to any other port, and then set ``port`` parameter in ``Server`` constructor to ``80`` .
32
+
30
33
This is the same example as above, but it uses the ``settings.toml`` file to configure the WiFi network.
31
34
32
35
**From now on, all the examples will use the** ``settings.toml`` **file to configure the WiFi network.**
@@ -122,8 +125,8 @@ It is possible to use the MDNS protocol to make the server accessible via a host
122
125
to an IP address. It is worth noting that it takes a bit longer to get the response from the server
123
126
when accessing it via the hostname.
124
127
125
-
In this example, the server is accessible via the IP and ``http://custom-mdns-hostname.local/``.
126
-
On some routers it is also possible to use ``http://custom-mdns-hostname/``, but **this is not guaranteed to work**.
128
+
In this example, the server is accessible via the IP and ``http://custom-mdns-hostname.local:5000/``.
129
+
On some routers it is also possible to use ``http://custom-mdns-hostname:5000/``, but **this is not guaranteed to work**.
0 commit comments