Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

adb.exe: error: cannot bind listener: Operation not permitted

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

like image 932
Nguyen Kim Chung Avatar asked Jun 07 '19 09:06

Nguyen Kim Chung


2 Answers

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

like image 115
AADProgramming Avatar answered Nov 08 '22 12:11

AADProgramming


I had the same issue, i followed this steps and it worked

adb root
adb reverse tcp:8080 tcp:8080
like image 2
Mahabubul Hasan Avatar answered Nov 08 '22 13:11

Mahabubul Hasan