Description
The upnp example showcases how to use the upnp network behaviour to externally open ports on the network gateway.
Usage
To run the example, follow these steps:
In a terminal window, run the following command:
cargo runThis command will start the swarm and print the
NewExternalAddrif the gateway supportsUPnPorGatewayNotFoundif it doesn't.
Conclusion
The upnp example demonstrates the usage of libp2p to externally open a port on the gateway if it
supports UPnP.