There are various connection errors you may run into.  Examine the log to see which one applies to you.


Initial Checks


Please ensure you are using Bluestacks 5 not Bluestacks X


Some people are reporting high instability with the later versions of Bluestacks.  If you are experiencing frequent connection errors to the point you need to monitor Ragebot constantly, you would be advised to uninstall the version you are using and install an older release.

It is also a good idea to not update Bluestacks if you already have it stable. If you do, backup your instances first so you can revert to your previous version if you encounter issues.

See these links for more details.

Bluestacks Is Unstable

Bluestacks is Crashing





Error Messages


  • appium-uiautomator2-server-v4.27.0.apk' timed out after 20000ms'. Try to increase the 20000ms adb execution timeout represented by 'uiautomator2ServerInstallTimeout' capability


  • settings delete global hidden_api_policy_pre_p_apps;1 settings delete global hidden_api_policy_p_apps; settings delete global hidden_api_policy'' exited with code 1'; Command output: error: closed


  • An unknown server-side error occured while processing the command. Original Error: Appium Settings app is not running after 5000ms




Possible Solutions


Any of these messages indicates that the Bluestacks instance you are attempting to connect to is not responding or is not responding normally.  This issue usually arises after creating a new instance in Bluestacks.  Something just did not work correctly and it cannot accept connections.



Here are some troubleshooting steps.
1. Restart your computer. This solves so many issues. Can you connect now?
2. On the emulator, disable ADB (Bluestacks settings, Advanced page), exit the setting then go back in and enable it again.  Can you connect now?
3. If they were installed, uninstall the Appium components from the emulator. Go to the apps list and remove:




Try connecting now.  What is the result?
4. Create a new instance (in Bluestacks not in Ragebot). There is no need to install the game into it yet.  Can you connect to that?
5. Repeat step 4 but use "Android 11" instead.  Can you connect to that?
Please check the connection after each step. I'm interested to know which one works for you, if any.