title: How do you adb to multiinstance bluestacks 4? What is the adb-port of the secondary instances?
body: <p>How do I adb to second and third and so forth instances of bluestacks?</p>
  
  <p>As mentioned <a href="https://stackoverflow.com/questions/54317727/how-do-you-adb-to-bluestacks-4">here</a> one has to enable Adb in preferences of each bluestack instance, then possibly do </p>
  
  <p><code>adb connect localhost:5555</code></p>
  
  <p>This will connect to the first instance. <code>adb devices</code> now shows</p>
  
  <pre><code>emulator-5554   device
  localhost:5555  device
  </code></pre>
  
  <p>Both being the same bluestack instance, namely the first instance. </p>