Please describe the feature you’d like to see added.
Add config option to set external P2P port to facilitate incoming connections, complementary to the externalip
option.
Is your feature related to a problem, if so please describe it.
Without being able to specify the external port, it is impossible to receive incoming connections when the node is behind a port-forwarding system unless the same port number is used both externally and internally, which may not always be an option or may not be desired.
Describe the solution you’d like
Add an externalp2pport
option or similar, specifying the public p2p port number to be reported to peers along with the externalip
.
Describe any alternatives you’ve considered
One might tag on a :port number to the externalip
option… but this is ambiguous as there are other ports besides p2p that might need to be specified separately. One might also want additional options for Tor, I2P, etc.
Please leave any additional context
The need for this arises when the node is accessed through a VPN or any other port-forwarding setup, if the local p2p port cannot be used on the external IP for any reason.