… comment above was marked as resolved even though …
Which comment? #23542 (review) is still open.
- What is a BAD port for Bitcoin Core?
Since this PR, if it gets merged, a bad port (for making automatic outgoing connections to) is one for which IsBadPort()
returns true
.
- Why browsers (bad ports) are referenced here because Bitcoin Core is not a browser …
#23542 (review)
- What was the reason to allow p2p connections to nodes that are not using default ports?
From this PR OP: “because connections over clearnet that involve
port 8333 make it easy to detect, analyze, block or divert Bitcoin p2p
traffic before the connection is even established (at TCP SYN time)”
Why would someone use non-default port?
See above, and also the reasons you state below:
Two reasons that I could think of: Privacy and Security. If someone wants to use a port that looks like other service but is Bitcoin Core, isn’t that something we should encourage/allow?
Yes. This is what the current PR aims to achieve.