Skip to content
You are reading the Teku development version documentation and some features may not be available in the stable release. You can switch to the stable version using the version box at the bottom of the screen.

Updated on April 15, 2021

Configuring NAT

Use the --p2p-nat-method option to specify the NAT method. Options are NONE and UPNP.

You cannot change the NAT method while Teku is running. To change the NAT method restart the node with the --p2p-nat-method option.


Specify 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 if a node is running in a UPnP environment and provides port forwarding. UPnP might introduce delays during node startup, especially on networks without a UPnP gateway device.


UPnP support is often disabled by default in networking firmware. If disabled by default, you must explicitly enable UPnP support.


Specify NONE to explicitly configure the external IP address and ports advertised using --p2p-advertised-ip and --p2p-advertised-port for the P2P service.

Manually configure your firewall to allow external hosts to create inbound connections to Teku.

Questions or feedback? You can discuss issues and obtain free support on Teku Discord channel.
For paid professional support by Consensys, contact us at [email protected].