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
Default listen addresses are controlled by environment variables. Use ``LIBP2P_BIND`` for IPv4 (default ``127.0.0.1``) and ``LIBP2P_BIND_V6`` for IPv6 (default ``::1``). Invalid values fall back to these secure defaults.
86
+
87
+
**IPv4 (LIBP2P_BIND):**
88
+
89
+
.. code-block:: bash
90
+
91
+
# Listen on all IPv4 interfaces (e.g. for tests)
92
+
export LIBP2P_BIND=0.0.0.0
93
+
python your_script.py
94
+
95
+
**IPv6 (LIBP2P_BIND_V6):**
96
+
97
+
.. code-block:: bash
98
+
99
+
# Use default IPv6 loopback (::1)
100
+
python your_script.py
101
+
102
+
# Listen on all IPv6 interfaces (e.g. for tests or dual-stack)
103
+
export LIBP2P_BIND_V6=::
104
+
python your_script.py
105
+
106
+
# Custom IPv6 address
107
+
export LIBP2P_BIND_V6=fd00::1
108
+
python your_script.py
109
+
110
+
Multiaddr formats for IPv6 include ``/ip6/::1/tcp/PORT`` and ``/ip6/::1/tcp/PORT/ws`` for WebSocket.
Copy file name to clipboardExpand all lines: docs/release_notes.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -391,7 +391,7 @@ Internal Changes - for py-libp2p Contributors
391
391
- Implement ``get_available_interfaces()``, ``get_optimal_binding_address()``, and ``expand_wildcard_address()``
392
392
- Update echo example to use dynamic address discovery instead of hardcoded wildcard
393
393
- Add safe fallbacks for environments lacking Thin Waist support
394
-
- Temporarily disable IPv6 support due to libp2p handshake issues (TODO: re-enable when resolved) (`#811 <https://github.com/libp2p/py-libp2p/issues/811>`__)
394
+
- Temporarily disable IPv6 support due to libp2p handshake issues (re-enabled later; use ``LIBP2P_BIND_V6`` to configure IPv6 bind address) (`#811 <https://github.com/libp2p/py-libp2p/issues/811>`__)
395
395
- The TODO IK patterns in Noise has been deprecated in specs: https://github.com/libp2p/specs/tree/master/noise#handshake-pattern (`#816 <https://github.com/libp2p/py-libp2p/issues/816>`__)
396
396
- Remove the already completed TODO tasks in Peerstore:
397
397
TODO: Set up an async task for periodic peer-store cleanup for expired addresses and records.
0 commit comments