I want to connect the emulator with back-end app on own local machine by using command:
adb -s emulator-5554 reverse tcp:8085 tcp:8085
But It return results:
adb.exe: error: cannot bind listener: Operation not permitted.
Please help me how to solve it.
I am using Android studio, my backend run node
Just posting the answer based on what is written in the comments by @user3647475 for anyone who is facing the issue
This issue occurs on AVDs running on android platform api version 29 - I am not sure what is the root cause.
Quick fix is to create & use avd with android platform api version 28, and re-test.
I tested on the android Asus phone running on android platform api version 29 and I did not face this issue.
So seems like there is a problem with the avd/system images made up of android platform api version 29
I had the same issue, i followed this steps and it worked
adb root
adb reverse tcp:8080 tcp:8080
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With