Which emulator are you using?
Most emulators should connect directly. If not you have to use the command with ADB to connect to the emulator IP and port
example adb connect 127.0.0.1:8888.
This thread is for NOX
It's recomended to use a real device or the Android SDK included emulator. But if you for some reason want to use NoxPlayer as emulator it is easy! Alternative 1 - Connect B4A IDE directly to NoxPlayer Download and install NoxPlayer Rename adb.exe in android SDK platform-tools directory...