user-1: i am trying to connect to maximum number of nodes.
i noticed there are many receive version message in debug.log file
so i have question, does the bitcoin-core connects to only those having either same version number or in short range of version message of our bitcoin's version message ?
or does it connects to all and any nodes which completes the handshake ?

user50691: You can see from the Debug Window ("Peers" tab) that the Bitcoin Core client connects with multiple clients not only with different versions but different implementations.
So to answer your question: No. 


-1: <p>i am trying to connect to maximum number of <code>nodes</code>.</p>

<p>i noticed there are many <code>receive version message</code> in <code>debug.log</code> file</p>

<p>so i have question, does the bitcoin-core connects to only those having either same <code>version number</code> or in short range of <code>version message</code> of our bitcoin's <code>version message</code> ?</p>

<p>or does it connects to all and any <code>nodes</code> which completes the <code>handshake</code> ?</p>
 50691: <p>You can see from the Debug Window ("Peers" tab) that the Bitcoin Core client connects with multiple clients not only with different versions but different implementations.</p>

<p>So to answer your question: No. </p>

<p><a href="https://i.stack.imgur.com/o9oQK.png" rel="noreferrer"><img src="https://i.stack.imgur.com/o9oQK.png" alt="Bitcoin Core peer list"></a></p>
