5
1
When client A opens a connection to client B, it opens its TCP connection to second client's port 8333. Is this connection solely used for A's queries and B's answers to A's query, or can B also query A using the same connection?
For example, A can ask B for list of known peers using this connection, but can B ask A for the same using the connection A established, or does B need to open a new connection to A's port 8333, exchange version messages, and only then send its queries?
So you only receive responses to your queries, and you shouldn't expect other clients to send you their queries to port other than 8333? – ThePiachu – 2011-11-04T10:19:17.747
I edited my answer to clarify things. – Serith – 2011-11-04T11:50:46.757
I don't think you're answering the question that was asked. He's asking whether it matters who listens and who connects. It doesn't, as Gavin's answer says. Once a connection is made, both sides can send requests and responses through that connection. Also, Bitcoin doesn't always reserve port 8333; it's configurable by the user with the -port=<port> command line argument. – Chris Moore – 2012-02-26T19:27:51.660