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: examples/js-libp2p-example-auto-tls/README.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -159,6 +159,35 @@ automatically configure port forwarding for IPv4 and IPv6 networks:
159
159
identify: identify(),
160
160
```
161
161
162
+
#### Dealing with unreliable routers
163
+
164
+
By default `@libp2p/upnp-nat` will use [SSDP](https://en.wikipedia.org/wiki/Simple_Service_Discovery_Protocol)
165
+
to locate your router on the network in order to use it to map ports and
166
+
discover it's externally routable address.
167
+
168
+
Some ISP-provided routers are underpowered and require rebooting before they
169
+
will respond to `SSDP` search messages.
170
+
171
+
If you know the URL to the device descriptor of your [Internet Gateway Device](https://openconnectivity.org/developer/specifications/upnp-resources/upnp/internet-gateway-device-igd-v-2-0/)
172
+
you can specify it manually and skip the search:
173
+
174
+
```diff
175
+
services: {
176
+
autoTLS: autoTLS(),
177
+
+ upnp: uPnPNAT({
178
+
+ gateways: [
179
+
+ // manually specify URLs for device descriptor documents
180
+
+ // these can be IPv4 and/or IPv6 (if supported by your network)
0 commit comments