Please describe the feature you’d like to see added.
Connections to port 8333 can be recognized right away as Bitcoin P2P connections. While it is still possible to recognize Bitcoin P2P connections regardless of the port, random ports would make network-wide monitoring harder.
Is your feature related to a problem, if so please describe it.
Network-wide monitoring.
Describe the solution you’d like
The listening address and port of a node are propagated and saved in other nodes’ databases, so the port has to be constant. Thus, after generating a random port it would need to be saved on disk (e.g. settings.json
) and reused after restarts.
This applies to new installations. Existent ones have already propagated with port 8333 (if not changed by the node operator). So, something like: if a new installation and port is not explicitly provided, instead of using 8333 generate a random one and save it to settings.json
.
This applies only to listening on IPv4 and IPv6 addresses.
Please leave any additional context
This is more of a network-wide measure. Individual nodes have stronger means to protect themselves.