Enable UPnP to quickly allow inbound peer connections without manual router configuration. Use UPnP in home or small office environments where a wireless router or modem provides NAT isolation.
UPnP automatically detects that a node is running in a UPnP environment and provides port forwarding.
UPnP support is often disabled by default in networking firmware. If disabled by default, explicitly enable UPnP support.
--nat-method command line option to enable UPnP.
UPNPmight introduce delays during node startup, especially on networks where no UPnP gateway device can be found.
--nat-methodcannot be used with the Besu Docker image.
When UPnP is enabled:
- Enode advertised to other nodes during discovery is the external IP address and port.
- External address and port are returned by the
admin_NodeInfoJSON-RPC API method for the
While Hyperledger Besu is running, UPnP does not support:
- IP address changes
- Disabling UPnP. To disable UPnP, restart the node without the
--nat-methodoption or set to